Changeset - r17299:87980f4e5659
[Not reviewed]
master
0 1 0
terkhen - 13 years ago 2011-02-10 18:27:50
terkhen@openttd.org
(svn r22049) -Codechange: Add assert condition to GetRoadOwner.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/road_map.h
Show inline comments
 
@@ -198,6 +198,7 @@ static inline bool HasTileRoadType(TileI
 
 */
 
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);
0 comments (0 inline, 0 general)