diff options
author | smatz <smatz@openttd.org> | 2009-05-18 01:26:23 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-18 01:26:23 +0000 |
commit | 0af27062c4d17148f357c0da1f8b9ce996601463 (patch) | |
tree | 1d4e22ed82a0995464f2789b1fd4c47ea8609e21 /src/saveload | |
parent | d1f9a90d3217709903530e58a641c18d61c96918 (diff) | |
download | openttd-0af27062c4d17148f357c0da1f8b9ce996601463.tar.xz |
(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile()
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/afterload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index b1829d5f6..fbb1bdef4 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -683,7 +683,7 @@ bool AfterLoadGame() for (TileIndex t = 0; t < map_size; t++) { switch (GetTileType(t)) { case MP_RAILWAY: - if (IsPlainRailTile(t)) { + if (IsPlainRail(t)) { /* Swap ground type and signal type for plain rail tiles, so the * ground type uses the same bits as for depots and waypoints. */ uint tmp = GB(_m[t].m4, 0, 4); @@ -1548,7 +1548,7 @@ bool AfterLoadGame() if (IsLevelCrossing(t)) { if (!Company::IsValidID(GetTileOwner(t))) FixOwnerOfRailTrack(t); } - } else if (IsTileType(t, MP_RAILWAY) && IsPlainRailTile(t)) { + } else if (IsPlainRailTile(t)) { if (!Company::IsValidID(GetTileOwner(t))) FixOwnerOfRailTrack(t); } } |