diff options
author | glx22 <glx@openttd.org> | 2021-06-13 04:18:21 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-07-09 21:36:09 +0200 |
commit | 89ab8b79a51b4963da55dce195ea1ab520c73b50 (patch) | |
tree | f0ba92ca28e0a322ea277568ee3a75a276e3ae52 /src/newgrf_station.cpp | |
parent | 5844027eb8588197d82fe896f027182621c4f923 (diff) | |
download | openttd-89ab8b79a51b4963da55dce195ea1ab520c73b50.tar.xz |
Codechange: Remove FOR_EACH_SET_BIT
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index a7932ce23..5fd5d6ad3 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -812,8 +812,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID /* Sprite layout which needs preprocessing */ bool separate_ground = HasBit(statspec->flags, SSF_SEPARATE_GROUND); uint32 var10_values = layout->PrepareLayout(total_offset, rti->fallback_railtype, 0, 0, separate_ground); - uint8 var10; - FOR_EACH_SET_BIT(var10, var10_values) { + for (uint8 var10 : SetBitIterator(var10_values)) { uint32 var10_relocation = GetCustomStationRelocation(statspec, nullptr, INVALID_TILE, var10); layout->ProcessRegisters(var10, var10_relocation, separate_ground); } |