mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Debug-show tiles which are blocked by vehicles as coloured
This commit is contained in:
@@ -799,6 +799,12 @@ void path_paint(paint_session * session, uint16 height, const rct_tile_element *
|
||||
imageFlags = CONSTRUCTION_MARKER;
|
||||
}
|
||||
|
||||
// For debugging purpose, show blocked tiles with a colour
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_BLOCKED_BY_VEHICLE)
|
||||
{
|
||||
imageFlags = COLOUR_BRIGHT_GREEN << 19 | COLOUR_GREY << 24 | IMAGE_TYPE_REMAP;
|
||||
}
|
||||
|
||||
sint16 x = session->MapPosition.x, y = session->MapPosition.y;
|
||||
|
||||
rct_tile_element * surface = map_get_surface_element_at({session->MapPosition.x, session->MapPosition.y});
|
||||
|
||||
Reference in New Issue
Block a user