From 514df81e27398309532f7523ee1c7df86fe3043d Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 14 Feb 2008 15:59:16 +0000 Subject: (svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them. --- src/openttd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index f1f55e310..4ec3fc919 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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) */ -- cgit v1.2.3-54-g00ecf