mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
This commit is contained in:
parent
e61008d6c0
commit
e9437c2b2b
@ -40,7 +40,6 @@
|
||||
|
||||
/* static */ TileIndex AIMap::GetTileIndex(uint32 x, uint32 y)
|
||||
{
|
||||
if (x >= ::MapSizeX() || y >= MapSizeY()) return INVALID_TILE;
|
||||
return ::TileXY(x, y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user