mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #1598
This commit is contained in:
parent
f25ab8e9f3
commit
ca0e63f1a1
|
@ -3638,7 +3638,7 @@ static money32 track_place(int rideIndex, int type, int originX, int originY, in
|
|||
|
||||
RCT2_GLOBAL(0x00F44060, void*) = &clearance_struct;
|
||||
|
||||
if (!gCheatsDisableClearanceChecks || flags & (1 << 6)){
|
||||
if (!gCheatsDisableClearanceChecks) {
|
||||
if (!map_can_construct_with_clear_at(x, y, baseZ, clearanceZ, (void*)0x006C5A5F, bl))
|
||||
return MONEY32_UNDEFINED;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "../addresses.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../cheats.h"
|
||||
#include "../drawing/drawing.h"
|
||||
#include "../game.h"
|
||||
#include "../input.h"
|
||||
|
@ -3449,7 +3450,11 @@ void ride_construction_tooldown_construct(int screenX, int screenY)
|
|||
trackBlock++;
|
||||
} while (trackBlock->index != 255);
|
||||
z -= bx;
|
||||
z -= 16;
|
||||
|
||||
// FIX not sure exactly why it starts trial and error place from a lower Z, but it causes issues with disable clearance
|
||||
if (!gCheatsDisableClearanceChecks) {
|
||||
z -= 16;
|
||||
}
|
||||
} else {
|
||||
z = RCT2_GLOBAL(0x00F44163, uint16);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue