Mercurial > hg > openttd
diff src/saveload/afterload.cpp @ 11946:d5716f5a9844 draft
(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile()
author | smatz <smatz@openttd.org> |
---|---|
date | Mon, 18 May 2009 01:26:23 +0000 (2009-05-18) |
parents | fccc9cea27a7 |
children | ad1ecf6b26e4 |
line wrap: on
line diff
--- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -683,7 +683,7 @@ 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 @@ 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); } }