mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Merge pull request #15486 from ZehMatt/nsf/backport-overflow
Use int32_t for iterating tiles
This commit is contained in:
@@ -5548,9 +5548,9 @@ void determine_ride_entrance_and_exit_locations()
|
||||
// Search the map to find it. Skip the outer ring of invisible tiles.
|
||||
bool alreadyFoundEntrance = false;
|
||||
bool alreadyFoundExit = false;
|
||||
for (uint8_t x = 1; x < MAXIMUM_MAP_SIZE_TECHNICAL - 1; x++)
|
||||
for (int32_t x = 1; x < MAXIMUM_MAP_SIZE_TECHNICAL - 1; x++)
|
||||
{
|
||||
for (uint8_t y = 1; y < MAXIMUM_MAP_SIZE_TECHNICAL - 1; y++)
|
||||
for (int32_t y = 1; y < MAXIMUM_MAP_SIZE_TECHNICAL - 1; y++)
|
||||
{
|
||||
TileElement* tileElement = map_get_first_element_at(TileCoordsXY{ x, y });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user