(svn r6251) Replace 2 bool variables by a simple switch

This commit is contained in:
tron
2006-08-31 06:46:52 +00:00
parent e2f8ef4f72
commit d0a0786ef1
2 changed files with 4 additions and 11 deletions

View File

@@ -311,11 +311,6 @@ static inline RailGroundType GetRailGroundType(TileIndex t)
return (RailGroundType)GB(_m[t].m2, 0, 4);
}
static inline bool IsBarrenRailGround(TileIndex t)
{
return GetRailGroundType(t) == RAIL_GROUND_BARREN;
}
static inline bool IsSnowRailGround(TileIndex t)
{
return GetRailGroundType(t) == RAIL_GROUND_ICE_DESERT;