diff options
author | glx22 <glx@openttd.org> | 2021-06-13 05:15:36 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-09 21:36:09 +0200 |
commit | 49b66ea504fafe9b942b35a97c369c4afa054f41 (patch) | |
tree | 55441ecb7e10afa37d003239abf7ec5aad97a71f /src/elrail.cpp | |
parent | a543a4b7bb0d869800591ec1504b3934b68ecd8f (diff) | |
download | openttd-49b66ea504fafe9b942b35a97c369c4afa054f41.tar.xz |
Codechange: Remove FOR_EACH_SET_TRACK
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index 4959bb2cb..03adb0c8c 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -470,8 +470,7 @@ static void DrawRailCatenaryRailway(const TileInfo *ti) } /* Drawing of pylons is finished, now draw the wires */ - Track t; - FOR_EACH_SET_TRACK(t, wireconfig[TS_HOME]) { + for (Track t : SetTrackBitIterator(wireconfig[TS_HOME])) { SpriteID wire_base = (t == halftile_track) ? wire_halftile : wire_normal; byte PCPconfig = HasBit(PCPstatus, PCPpositions[t][0]) + (HasBit(PCPstatus, PCPpositions[t][1]) << 1); |