From bcd80b3db84a473bbe214ea5989f8e8441cbe95b Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Mon, 6 Jul 2015 21:09:01 +0100 Subject: [PATCH] Fix issue with tracks on uneven ground. Fixes #1525 --- src/windows/ride_construction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 39bf04df6f..292c96bfe0 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -3446,6 +3446,7 @@ static void ride_construction_tooldown_construct(int screenX, int screenY) if (RCT2_GLOBAL(0x00F44074, money32) == MONEY32_UNDEFINED) { rct_string_id errorText = RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_TEXT, rct_string_id); + z -= 8; if ( errorText == STR_NOT_ENOUGH_CASH_REQUIRES || errorText == STR_CAN_ONLY_BUILD_THIS_UNDERWATER || @@ -3453,7 +3454,7 @@ static void ride_construction_tooldown_construct(int screenX, int screenY) errorText == STR_CAN_ONLY_BUILD_THIS_ABOVE_GROUND || errorText == STR_TOO_HIGH_FOR_SUPPORTS || zAttempts == 0 || - z - 8 < 0 + z < 0 ) { int saveTrackDirection = _currentTrackPieceDirection; int saveCurrentTrackCurve = _currentTrackCurve;