mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r22049) -Codechange: Add assert condition to GetRoadOwner.
This commit is contained in:
parent
16dd93d3fb
commit
096c2857ee
@ -198,6 +198,7 @@ static inline bool HasTileRoadType(TileIndex t, RoadType rt)
|
||||
*/
|
||||
static inline Owner GetRoadOwner(TileIndex t, RoadType rt)
|
||||
{
|
||||
assert(IsTileType(t, MP_ROAD) || IsTileType(t, MP_STATION) || IsTileType(t, MP_TUNNELBRIDGE));
|
||||
switch (rt) {
|
||||
default: NOT_REACHED();
|
||||
case ROADTYPE_ROAD: return (Owner)GB(IsNormalRoadTile(t) ? _m[t].m1 : _me[t].m7, 0, 5);
|
||||
|
Loading…
Reference in New Issue
Block a user