From 1e74834441e426052ad24783b8f374fa9172b1d0 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 20 Feb 2008 19:37:46 +0000 Subject: [PATCH] (svn r12203) -Fix (r12199): Make trains pay attention to signals again. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 98531f5078..9da5eec699 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) {