summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/map.c b/map.c
index a158dd6de..81a72b28b 100644
--- a/map.c
+++ b/map.c
@@ -29,7 +29,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add,
uint y;
dx = add & MapMaxX();
- if (dx >= MapSizeX() / 2) dx -= MapSizeX();
+ if (dx >= (int)MapSizeX() / 2) dx -= MapSizeX();
dy = (add - dx) / (int)MapSizeX();
x = TileX(tile) + dx;