Mercurial > hg > openttd
diff src/openttd.cpp @ 8563:992fa65afba1 draft
(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
author | frosch <frosch@openttd.org> |
---|---|
date | Thu, 14 Feb 2008 15:59:16 +0000 (2008-02-14) |
parents | 8aae08d562cc |
children | ef2c93a9589d |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2388,7 +2388,7 @@ 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) */