diff options
-rw-r--r-- | src/elrail.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 5d8f2b8f3..44481dd31 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -124,6 +124,9 @@ static TrackBits GetRailTrackBitsUniversal(TileIndex t, byte *override) */ static TrackBits MaskWireBits(TileIndex t, TrackBits tracks) { + /* Single track bits are never masked out. */ + if (likely(HasAtMostOneBit(tracks))) return tracks; + if (!IsPlainRailTile(t)) return tracks; TrackdirBits neighbour_tdb = TRACKDIR_BIT_NONE; |