mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Use IsGhost() to access ghost state
Added set and clear ghost to further prevent direct access to flags
This commit is contained in:
@@ -2199,7 +2199,7 @@ void track_paint(paint_session* session, uint8_t direction, int32_t height, cons
|
||||
session->TrackColours[SCHEME_MISC] = 0x21600000;
|
||||
session->TrackColours[SCHEME_3] = 0x21600000;
|
||||
}
|
||||
if (tileElement->flags & TILE_ELEMENT_FLAG_GHOST)
|
||||
if (tileElement->IsGhost())
|
||||
{
|
||||
uint32_t ghost_id = CONSTRUCTION_MARKER;
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
|
||||
Reference in New Issue
Block a user