Codechange: Remove FOR_EACH_SET_BIT

This commit is contained in:
glx22
2021-06-13 04:18:21 +02:00
committed by Loïc Guilloux
parent 5844027eb8
commit 89ab8b79a5
9 changed files with 58 additions and 32 deletions

View File

@@ -2993,8 +2993,7 @@ draw_default_foundation:
/* 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, st, ti->tile, var10);
layout->ProcessRegisters(var10, var10_relocation, separate_ground);
}