(svn r1837) GetTileOwner returns Owner, not bool

Also assert() that the TileIndex is valid
This commit is contained in:
tron 2005-02-07 10:09:28 +00:00
parent 552d84884f
commit 9198522307
1 changed files with 2 additions and 1 deletions

3
tile.h
View File

@ -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];
}