mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r1837) GetTileOwner returns Owner, not bool
Also assert() that the TileIndex is valid
This commit is contained in:
parent
552d84884f
commit
9198522307
3
tile.h
3
tile.h
@ -57,8 +57,9 @@ static inline bool IsTileType(TileIndex tile, TileType type)
|
|||||||
return GetTileType(tile) == type;
|
return GetTileType(tile) == type;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool GetTileOwner(TileIndex tile)
|
static inline Owner GetTileOwner(TileIndex tile)
|
||||||
{
|
{
|
||||||
|
assert(tile < MapSize());
|
||||||
return _map_owner[tile];
|
return _map_owner[tile];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user