diff options
author | tron <tron@openttd.org> | 2005-06-03 22:43:59 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-03 22:43:59 +0000 |
commit | 793eba3a3a2fac64e0e4bd860d8c04d75061abd4 (patch) | |
tree | 921c8439879a66403a8917b702f3bc746709060f | |
parent | 80aa6af8e38801c943de92f83a76a7021b1a0ed8 (diff) | |
download | openttd-793eba3a3a2fac64e0e4bd860d8c04d75061abd4.tar.xz |
(svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information
-rw-r--r-- | tile.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -81,6 +81,10 @@ static inline bool IsTileType(TileIndex tile, TileType type) static inline Owner GetTileOwner(TileIndex tile) { assert(tile < MapSize()); + assert(!IsTileType(tile, MP_HOUSE)); + assert(!IsTileType(tile, MP_VOID)); + assert(!IsTileType(tile, MP_INDUSTRY)); + return _map_owner[tile]; } |