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

@@ -3485,8 +3485,7 @@ static void DeleteLastWagon(Train *v)
/* It is important that these two are the first in the loop, as reservation cannot deal with every trackbit combination */
assert(TRACK_BEGIN == TRACK_X && TRACK_Y == TRACK_BEGIN + 1);
Track t;
FOR_EACH_SET_TRACK(t, remaining_trackbits) TryReserveRailTrack(tile, t);
for (Track t : SetTrackBitIterator(remaining_trackbits)) TryReserveRailTrack(tile, t);
}
/* check if the wagon was on a road/rail-crossing */