1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Test vertical tunnels properly

This commit is contained in:
Marijn van der Werf
2017-01-17 23:57:53 +01:00
parent 6016339773
commit 2ffbbe0678
5 changed files with 55 additions and 16 deletions

View File

@@ -45,6 +45,10 @@ uint8 gRightTunnelCount;
uint8 gVerticalTunnelHeight;
#endif
#ifdef __TESTPAINT__
uint16 testPaintVerticalTunnelHeight;
#endif
static void blank_tiles_paint(sint32 x, sint32 y);
static void sub_68B3FB(sint32 x, sint32 y);
@@ -333,6 +337,9 @@ void paint_util_push_tunnel_right(uint16 height, uint8 type)
void paint_util_set_vertical_tunnel(uint16 height)
{
#ifdef __TESTPAINT__
testPaintVerticalTunnelHeight = height;
#endif
gVerticalTunnelHeight = height / 16;
}

View File

@@ -106,6 +106,10 @@ extern uint8 gVerticalTunnelHeight;
#define gVerticalTunnelHeight RCT2_GLOBAL(0x009E323C, uint8)
#endif
#ifdef __TESTPAINT__
extern uint16 testPaintVerticalTunnelHeight;
#endif
extern bool gShowSupportSegmentHeights;
extern const rct_xy16 BannerBoundBoxes[][2];