mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r12203) -Fix (r12199): Make trains pay attention to signals again.
This commit is contained in:
parent
e90cf8509a
commit
1e74834441
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user