diff options
-rw-r--r-- | src/map_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map_func.h b/src/map_func.h index 265b88741..537b1f9a7 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -161,7 +161,7 @@ typedef int32 TileIndexDiff; */ static inline TileIndex TileXY(uint x, uint y) { - return (y * MapSizeX()) + x; + return (y << MapLogX()) + x; } /** |