diff options
author | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
commit | 7fb3f54584fd9dd3266997cd12bd1853c18ad5bb (patch) | |
tree | 35f2cfc46313d08457c127c393370517d519fab3 /src/rail_cmd.cpp | |
parent | d4666b51eebaf8431a0f60e342182c57215db2ef (diff) | |
download | openttd-7fb3f54584fd9dd3266997cd12bd1853c18ad5bb.tar.xz |
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index d222c0587..4c6a01563 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -265,7 +265,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p } break; - case MP_STREET: + case MP_ROAD: #define M(x) (1 << (x)) /* Level crossings may only be built on these slopes */ if (!HASBIT(M(SLOPE_SEN) | M(SLOPE_ENW) | M(SLOPE_NWS) | M(SLOPE_NS) | M(SLOPE_WSE) | M(SLOPE_EW) | M(SLOPE_FLAT), tileh)) { @@ -354,7 +354,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); switch (GetTileType(tile)) { - case MP_STREET: { + case MP_ROAD: { if (!IsLevelCrossing(tile) || GetCrossingRailBits(tile) != trackbit || (_current_player != OWNER_WATER && !CheckTileOwnership(tile)) || @@ -757,7 +757,7 @@ static bool CheckSignalAutoFill(TileIndex &tile, Trackdir &trackdir, int &signal } return true; - case MP_STREET: + case MP_ROAD: if (!IsLevelCrossing(tile)) return false; signal_ctr += 2; return true; @@ -1076,7 +1076,7 @@ CommandCost CmdConvertRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) switch (GetTileType(tile)) { case MP_RAILWAY: proc = DoConvertRail; break; case MP_STATION: proc = DoConvertStationRail; break; - case MP_STREET: proc = DoConvertStreetRail; break; + case MP_ROAD: proc = DoConvertStreetRail; break; case MP_TUNNELBRIDGE: proc = DoConvertTunnelBridgeRail; break; default: continue; } |