(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 7922c9ff84
commit 26b153b1df
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;