diff options
author | tron <tron@openttd.org> | 2005-02-07 10:09:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-07 10:09:28 +0000 |
commit | 919852230713918b4edaec2d963faab876e2b87b (patch) | |
tree | ba6d7baee1f79207c5b02f6db96a3e843c02ab41 | |
parent | 552d84884f8f0d4424297f7df773f70a65ff4437 (diff) | |
download | openttd-919852230713918b4edaec2d963faab876e2b87b.tar.xz |
(svn r1837) GetTileOwner returns Owner, not bool
Also assert() that the TileIndex is valid
-rw-r--r-- | tile.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -57,8 +57,9 @@ static inline bool IsTileType(TileIndex tile, TileType type) return GetTileType(tile) == type; } -static inline bool GetTileOwner(TileIndex tile) +static inline Owner GetTileOwner(TileIndex tile) { + assert(tile < MapSize()); return _map_owner[tile]; } |