summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-01-17 16:55:13 +0000
committerfrosch <frosch@openttd.org>2008-01-17 16:55:13 +0000
commit03e7f6f2d2c3802fd6ad653302aec52585cc0ef9 (patch)
treedc097272bb93f6c019f9ed773ae4fdb6106339ea /src/map.cpp
parent82727a8713e5ac551f6ea87f6a8cf155b73d2464 (diff)
downloadopenttd-03e7f6f2d2c3802fd6ad653302aec52585cc0ef9.tar.xz
(svn r11897) -Fix: Replace an uint with TileIndex and a small coding style fix.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 0bdfbe355..865e92b35 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -139,7 +139,7 @@ uint ScaleByMapSize1D(uint n)
* @param addy the amount of tiles in the Y direction to add
* @return translated tile, or INVALID_TILE when it would've wrapped.
*/
-uint TileAddWrap(TileIndex tile, int addx, int addy)
+TileIndex TileAddWrap(TileIndex tile, int addx, int addy)
{
uint x = TileX(tile) + addx;
uint y = TileY(tile) + addy;