diff options
author | frosch <frosch@openttd.org> | 2008-02-14 15:59:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-02-14 15:59:16 +0000 |
commit | 514df81e27398309532f7523ee1c7df86fe3043d (patch) | |
tree | a43464406df621d20a7dd83755ef86ae3474e9ea /src/openttd.cpp | |
parent | 6c932166414ac0164fc53658b880d5b05a9d7a7e (diff) | |
download | openttd-514df81e27398309532f7523ee1c7df86fe3043d.tar.xz |
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) */ |