diff options
author | frosch <frosch@openttd.org> | 2009-05-15 16:07:36 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-05-15 16:07:36 +0000 |
commit | 8ffb93c358c80fc24e349ad232648087508deec6 (patch) | |
tree | 05009b41503e46ed5e5a6edfa56f11dadafa66d9 /src/ai/api/ai_rail.cpp | |
parent | 683a6ca039fb0c52093dd93261b6233dd6f482f3 (diff) | |
download | openttd-8ffb93c358c80fc24e349ad232648087508deec6.tar.xz |
(svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS.
Diffstat (limited to 'src/ai/api/ai_rail.cpp')
-rw-r--r-- | src/ai/api/ai_rail.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_rail.cpp b/src/ai/api/ai_rail.cpp index 7719d5576..b067b0904 100644 --- a/src/ai/api/ai_rail.cpp +++ b/src/ai/api/ai_rail.cpp @@ -203,6 +203,7 @@ if (IsRailWaypointTile(tile)) return ::GetRailWaypointBits(tile); if (IsRailStationTile(tile)) return ::TrackToTrackBits(::GetRailStationTrack(tile)); if (IsLevelCrossingTile(tile)) return ::GetCrossingRailBits(tile); + if (IsRailDepotTile(tile)) return ::TRACK_BIT_NONE; return ::GetTrackBits(tile); } |