diff options
author | michi_cc <michi_cc@openttd.org> | 2012-03-29 12:27:34 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-03-29 12:27:34 +0000 |
commit | 7e438d27f15b3fbc523bd84c4d97c364752b8554 (patch) | |
tree | bcbb0ab5a7d53c442860e8be65c466f6dd127a44 /src/pbs.cpp | |
parent | 4bbea6ee636da2eeceb42072b39b2bf0793dfab8 (diff) | |
download | openttd-7e438d27f15b3fbc523bd84c4d97c364752b8554.tar.xz |
(svn r24078) -Fix [FS#5093,FS#5130] (r24071): A fix that breaks all other cases isn't really a fix. Redo it to make sure that reservations of trains entering or exiting depots are properly made and freed.
Diffstat (limited to 'src/pbs.cpp')
-rw-r--r-- | src/pbs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pbs.cpp b/src/pbs.cpp index 3dbd5b883..01e7b2f37 100644 --- a/src/pbs.cpp +++ b/src/pbs.cpp @@ -369,8 +369,7 @@ Train *GetTrainForReservation(TileIndex tile, Track track) */ bool IsSafeWaitingPosition(const Train *v, TileIndex tile, Trackdir trackdir, bool include_line_end, bool forbid_90deg) { - /* A depot is safe if we enter it, but not when we exit. */ - if (IsRailDepotTile(tile) && TrackdirToExitdir(trackdir) != GetRailDepotDirection(tile)) return true; + if (IsRailDepotTile(tile)) return true; if (IsTileType(tile, MP_RAILWAY)) { /* For non-pbs signals, stop on the signal tile. */ |