(svn r12203) -Fix (r12199): Make trains pay attention to signals again.

This commit is contained in:
frosch 2008-02-20 19:37:46 +00:00
parent e90cf8509a
commit 1e74834441

View File

@ -3042,7 +3042,7 @@ static void TrainController(Vehicle *v, bool update_image)
* away the bits that aren't reachable. */ * away the bits that aren't reachable. */
TrackStatus ts = GetTileTrackStatus(gp.new_tile, TRANSPORT_RAIL, 0, ReverseDiagDir(enterdir)) & _reachable_tracks[enterdir]; TrackStatus ts = GetTileTrackStatus(gp.new_tile, TRANSPORT_RAIL, 0, ReverseDiagDir(enterdir)) & _reachable_tracks[enterdir];
TrackdirBits trackdirbits = TrackStatusToTrackdirBits(ts); TrackdirBits trackdirbits = TrackStatusToTrackdirBits(ts);
TrackdirBits red_signals = TrackStatusToRedSignals(ts); TrackBits red_signals = TrackdirBitsToTrackBits(TrackStatusToRedSignals(ts));
TrackBits bits = TrackdirBitsToTrackBits(trackdirbits); TrackBits bits = TrackdirBitsToTrackBits(trackdirbits);
if (_patches.pathfinder_for_trains != VPF_NTP && _patches.forbid_90_deg && prev == NULL) { if (_patches.pathfinder_for_trains != VPF_NTP && _patches.forbid_90_deg && prev == NULL) {