Codechange: Remove FOR_EACH_SET_TRACK

This commit is contained in:
glx22
2021-06-13 05:15:36 +02:00
committed by Loïc Guilloux
parent a543a4b7bb
commit 49b66ea504
5 changed files with 5 additions and 18 deletions

View File

@@ -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);