diff options
author | Peter Nelson <peter1138@openttd.org> | 2018-05-18 22:16:15 +0100 |
---|---|---|
committer | Patric Stout <truebrain@openttd.org> | 2019-03-03 20:59:44 +0100 |
commit | 3f327116db615a902c0ddf149fd35d031955fcfa (patch) | |
tree | 4a68078512d3365c639444098fc04edd801b5dde /src/pathfinder/npf | |
parent | a67ee025294278f9113a1c8bcb5ee91d9e174f69 (diff) | |
download | openttd-3f327116db615a902c0ddf149fd35d031955fcfa.tar.xz |
Change: Don't apply forbid 90 deg turn settings to ships.
Diffstat (limited to 'src/pathfinder/npf')
-rw-r--r-- | src/pathfinder/npf/npf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp index 7d19d4ef1..d7722ae67 100644 --- a/src/pathfinder/npf/npf.cpp +++ b/src/pathfinder/npf/npf.cpp @@ -836,7 +836,7 @@ static TrackdirBits GetDriveableTrackdirBits(TileIndex dst_tile, Trackdir src_tr trackdirbits &= TrackdirReachesTrackdirs(src_trackdir); /* Filter out trackdirs that would make 90 deg turns for trains */ - if (_settings_game.pf.forbid_90_deg && (type == TRANSPORT_RAIL || type == TRANSPORT_WATER)) trackdirbits &= ~TrackdirCrossesTrackdirs(src_trackdir); + if (_settings_game.pf.forbid_90_deg && type == TRANSPORT_RAIL) trackdirbits &= ~TrackdirCrossesTrackdirs(src_trackdir); DEBUG(npf, 6, "After filtering: (%d, %d), possible trackdirs: 0x%X", TileX(dst_tile), TileY(dst_tile), trackdirbits); |