diff options
author | frosch <frosch@openttd.org> | 2008-02-20 19:37:46 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-02-20 19:37:46 +0000 |
commit | 1e74834441e426052ad24783b8f374fa9172b1d0 (patch) | |
tree | 39569b594ec3e422288fb806d7c9f40cbf0c4539 | |
parent | e90cf8509a1d6d82c8111f51b2ed92711cdc516b (diff) | |
download | openttd-1e74834441e426052ad24783b8f374fa9172b1d0.tar.xz |
(svn r12203) -Fix (r12199): Make trains pay attention to signals again.
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 98531f507..9da5eec69 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3042,7 +3042,7 @@ static void TrainController(Vehicle *v, bool update_image) * away the bits that aren't reachable. */ TrackStatus ts = GetTileTrackStatus(gp.new_tile, TRANSPORT_RAIL, 0, ReverseDiagDir(enterdir)) & _reachable_tracks[enterdir]; TrackdirBits trackdirbits = TrackStatusToTrackdirBits(ts); - TrackdirBits red_signals = TrackStatusToRedSignals(ts); + TrackBits red_signals = TrackdirBitsToTrackBits(TrackStatusToRedSignals(ts)); TrackBits bits = TrackdirBitsToTrackBits(trackdirbits); if (_patches.pathfinder_for_trains != VPF_NTP && _patches.forbid_90_deg && prev == NULL) { |