1
0
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:
Michael Steenbeek
2019-12-30 16:03:51 +01:00
committed by Duncan
parent 2d7dccb0c2
commit 77494bbc73
30 changed files with 115 additions and 111 deletions

View File

@@ -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);