(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.

This commit is contained in:
frosch
2008-02-14 15:59:16 +00:00
parent 739b118c6b
commit 43c0f7ea8e
16 changed files with 79 additions and 61 deletions

View File

@@ -2388,7 +2388,7 @@ bool AfterLoadGame()
Owner o = GetRoadOwner(t, rt);
if (IsValidPlayer(o) && !GetPlayer(o)->is_active) SetRoadOwner(t, rt, OWNER_NONE);
}
if (GetRoadTileType(t) == ROAD_TILE_CROSSING) {
if (IsLevelCrossing(t)) {
Owner o = GetTileOwner(t);
if (!GetPlayer(o)->is_active) {
/* remove leftover rail piece from crossing (from very old savegames) */