summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-15 20:59:22 +0000
committertruebrain <truebrain@openttd.org>2009-01-15 20:59:22 +0000
commite9437c2b2b96d052190e88a416247fe5ca61bb29 (patch)
treebe688e365843925175e012d8aa52ca7278b6cc6e /src
parente61008d6c0e7bac8a173f2e0696f9f5f191644eb (diff)
downloadopenttd-e9437c2b2b96d052190e88a416247fe5ca61bb29.tar.xz
(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
Diffstat (limited to 'src')
-rw-r--r--src/ai/api/ai_map.cpp1
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);
}