mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fixes #2828: shifting by wrong number of bits
This commit is contained in:
parent
7a6cdbcfed
commit
8f8d0e2473
|
@ -3433,7 +3433,7 @@ money32 place_maze_design(uint8 flags, uint8 rideIndex, uint16 mazeEntry, sint16
|
||||||
// Check support height
|
// Check support height
|
||||||
if (!gCheatsDisableSupportLimits) {
|
if (!gCheatsDisableSupportLimits) {
|
||||||
rct_map_element *mapElement = map_get_surface_element_at(x >> 5, y >> 5);
|
rct_map_element *mapElement = map_get_surface_element_at(x >> 5, y >> 5);
|
||||||
uint8 supportZ = (z + 32) >> 8;
|
uint8 supportZ = (z + 32) >> 3;
|
||||||
if (supportZ > mapElement->base_height) {
|
if (supportZ > mapElement->base_height) {
|
||||||
uint8 supportHeight = (supportZ - mapElement->base_height) / 2;
|
uint8 supportHeight = (supportZ - mapElement->base_height) / 2;
|
||||||
uint8 maxSupportHeight = RCT2_GLOBAL(0x0097D218 + (RIDE_TYPE_MAZE * 8), uint8);
|
uint8 maxSupportHeight = RCT2_GLOBAL(0x0097D218 + (RIDE_TYPE_MAZE * 8), uint8);
|
||||||
|
|
Loading…
Reference in New Issue