From c031f6c5fa257fa797b44a2828ea5ec04c46c386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 6 Oct 2017 21:36:45 +0200 Subject: [PATCH] Don't reference virtual floor from testpaint --- src/openrct2/paint/tile_element/TileElement.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/paint/tile_element/TileElement.cpp b/src/openrct2/paint/tile_element/TileElement.cpp index 5ead360142..2dab46b63a 100644 --- a/src/openrct2/paint/tile_element/TileElement.cpp +++ b/src/openrct2/paint/tile_element/TileElement.cpp @@ -227,11 +227,13 @@ static void sub_68B3FB(paint_session * session, sint32 x, sint32 y) max_height *= 8; +#ifndef __TESTPAINT__ if (partOfVirtualFloor) { // We must pretend this tile is at least as tall as the virtual floor max_height = Math::Max(max_height, gMapVirtualFloorHeight); } +#endif // __TESTPAINT__ dx -= max_height + 32; @@ -328,10 +330,12 @@ static void sub_68B3FB(paint_session * session, sint32 x, sint32 y) session->MapPosition = dword_9DE574; } while (!tile_element_is_last_for_tile(tile_element++)); +#ifndef __TESTPAINT__ if (partOfVirtualFloor) { virtual_floor_paint(session); } +#endif // __TESTPAINT__ if (!gShowSupportSegmentHeights) { return;