mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Create definitions for some coords related stuff (#10456)
* Create definitions for some coords related stuff * Use constexpr; add define for Z step
This commit is contained in:
committed by
Duncan
parent
2d7dccb0c2
commit
77494bbc73
@@ -114,7 +114,7 @@ static int32_t peep_move_one_tile(Direction direction, Peep* peep)
|
||||
x += CoordsDirectionDelta[direction].x;
|
||||
y += CoordsDirectionDelta[direction].y;
|
||||
|
||||
if (x >= 8192 || y >= 8192)
|
||||
if (x >= MAXIMUM_MAP_SIZE_BIG || y >= MAXIMUM_MAP_SIZE_BIG)
|
||||
{
|
||||
// This could loop!
|
||||
return guest_surface_path_finding(peep);
|
||||
|
||||
Reference in New Issue
Block a user