mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +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:
@@ -1170,7 +1170,7 @@ static money32 track_remove(
|
||||
|
||||
invalidate_test_results(ride);
|
||||
footpath_queue_chain_reset();
|
||||
if (!gCheatsDisableClearanceChecks || !(tileElement->flags & TILE_ELEMENT_FLAG_GHOST))
|
||||
if (!gCheatsDisableClearanceChecks || !(tileElement->IsGhost()))
|
||||
{
|
||||
footpath_remove_edges_at(x, y, tileElement);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user