1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 03:05:24 +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

@@ -6,6 +6,7 @@
- Fix: [#6123, #7907, #9472, #11028] Cannot build some track designs with 4 stations (original bug).
- Fix: [#7094] Back wall edge texture in water missing.
- Fix: [#10928] File browser's date column is too narrow.
- Fix: [#10951, #11160] Attempting to place park entrances creates ghost entrances in random locations.
- Fix: [#11005] Company value overflows.
- Fix: [#11027] Third color on walls becomes black when saving.
- Improved: [#11157] Slimmer virtual floor lines.

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++)
{