diff options
author | truebrain <truebrain@openttd.org> | 2009-01-15 20:59:22 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-15 20:59:22 +0000 |
commit | e9437c2b2b96d052190e88a416247fe5ca61bb29 (patch) | |
tree | be688e365843925175e012d8aa52ca7278b6cc6e /src/ai/api | |
parent | e61008d6c0e7bac8a173f2e0696f9f5f191644eb (diff) | |
download | openttd-e9437c2b2b96d052190e88a416247fe5ca61bb29.tar.xz |
(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
Diffstat (limited to 'src/ai/api')
-rw-r--r-- | src/ai/api/ai_map.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ai/api/ai_map.cpp b/src/ai/api/ai_map.cpp index b3a7f753c..dd6151f19 100644 --- a/src/ai/api/ai_map.cpp +++ b/src/ai/api/ai_map.cpp @@ -40,7 +40,6 @@ /* static */ TileIndex AIMap::GetTileIndex(uint32 x, uint32 y) { - if (x >= ::MapSizeX() || y >= MapSizeY()) return INVALID_TILE; return ::TileXY(x, y); } |