diff options
author | tron <tron@openttd.org> | 2006-03-30 09:29:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-30 09:29:01 +0000 |
commit | 7ad0d787e25306e700045cb678c66eeba9ea4434 (patch) | |
tree | 21b00e82b5c9850aa9567dba92d59ebb57aa50ba /unmovable_map.h | |
parent | 84de6477b2665dd0b16f93b677501dde02fc40d5 (diff) | |
download | openttd-7ad0d787e25306e700045cb678c66eeba9ea4434.tar.xz |
(svn r4166) Sprinkle several map accessors with assert()s
Diffstat (limited to 'unmovable_map.h')
-rw-r--r-- | unmovable_map.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unmovable_map.h b/unmovable_map.h index 32375c2cd..5f4b2b329 100644 --- a/unmovable_map.h +++ b/unmovable_map.h @@ -10,6 +10,7 @@ typedef enum UnmovableType { static inline UnmovableType GetUnmovableType(TileIndex t) { + assert(IsTileType(t, MP_UNMOVABLE)); return _m[t].m5; } @@ -24,6 +25,7 @@ static inline bool IsTransmitterTile(TileIndex t) static inline bool IsOwnedLand(TileIndex t) { + assert(IsTileType(t, MP_UNMOVABLE)); return GetUnmovableType(t) == UNMOVABLE_OWNED_LAND; } |