1
0
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:
Jeroen D Stout
2018-01-11 00:26:58 +01:00
committed by Ted John
parent f4c94c4c1b
commit 1f7dbe1178

View File

@@ -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});