1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

Fix #10951, #11160: Placing park entrances creates bugged ghosts (#11180)

This commit is contained in:
Michael Steenbeek
2020-03-31 14:47:37 +02:00
committed by GitHub
parent e6dadaab66
commit 41bf6def69
2 changed files with 5 additions and 4 deletions

View File

@@ -77,8 +77,8 @@ public:
GA_ERROR::INVALID_PARAMETERS, STR_CANT_BUILD_PARK_ENTRANCE_HERE, STR_ERR_TOO_MANY_PARK_ENTRANCES);
}
int8_t zLow = _loc.z;
int8_t zHigh = zLow + ParkEntranceHeight;
auto zLow = _loc.z;
auto zHigh = zLow + ParkEntranceHeight;
CoordsXYZ entranceLoc = _loc;
for (uint8_t index = 0; index < 3; index++)
{
@@ -123,8 +123,8 @@ public:
gParkEntrances.push_back(parkEntrance);
int8_t zLow = _loc.z;
int8_t zHigh = zLow + ParkEntranceHeight;
auto zLow = _loc.z;
auto zHigh = zLow + ParkEntranceHeight;
CoordsXY entranceLoc = { _loc.x, _loc.y };
for (uint8_t index = 0; index < 3; index++)
{