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/npf.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/npf.cpp')
-rw-r--r-- | src/npf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/npf.cpp b/src/npf.cpp index 5f7fce75c..57b5dad04 100644 --- a/src/npf.cpp +++ b/src/npf.cpp @@ -232,7 +232,7 @@ static void NPFMarkTile(TileIndex tile) } break; - case MP_STREET: + case MP_ROAD: if (!IsTileDepotType(tile, TRANSPORT_ROAD)) { SetRoadside(tile, ROADSIDE_BARREN); MarkTileDirtyByTile(tile); @@ -276,7 +276,7 @@ static int32 NPFRoadPathCost(AyStar* as, AyStarNode* current, OpenListNode* pare cost = IsTunnel(tile) ? NPFTunnelCost(current) : NPFBridgeCost(current); break; - case MP_STREET: + case MP_ROAD: cost = NPF_TILE_LENGTH; /* Increase the cost for level crossings */ if (IsLevelCrossing(tile)) cost += _patches.npf_crossing_penalty; @@ -327,7 +327,7 @@ static int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* pare cost = _trackdir_length[trackdir]; /* Should be different for diagonal tracks */ break; - case MP_STREET: /* Railway crossing */ + case MP_ROAD: /* Railway crossing */ cost = NPF_TILE_LENGTH; break; @@ -468,7 +468,7 @@ static bool VehicleMayEnterTile(Owner owner, TileIndex tile, DiagDirection enter } switch (GetTileType(tile)) { - case MP_STREET: + case MP_ROAD: /* rail-road crossing : are we looking at the railway part? */ if (IsLevelCrossing(tile) && DiagDirToAxis(enterdir) != GetCrossingRoadAxis(tile)) { |