Changeset - r1898:6a2625c2cc60
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-06-03 22:43:59
tron@openttd.org
(svn r2404) assert that GetTileOwner() isn't called for tiles, which don't store owner information
1 file changed with 4 insertions and 0 deletions:
tile.h
4
0 comments (0 inline, 0 general)
tile.h
Show inline comments
 
@@ -81,6 +81,10 @@ static inline bool IsTileType(TileIndex 
 
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];
 
}
 

	
0 comments (0 inline, 0 general)