diff options
| author | Roman971 <32455037+Roman971@users.noreply.github.com> | 2021-09-05 20:41:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-05 14:41:02 -0400 |
| commit | 3d57eaf01993f14d75eab1766256d1a8d808943a (patch) | |
| tree | b00b2392429734ed9e068733a5503e64a0539820 /src/code/z_effect.c | |
| parent | d874cd08fce72191d48fcc0341f8fcabfa842b8e (diff) | |
Add do whiles to all remaining gbi macros (#946)
* Add do whiles to all remaining gbi macros
* Cleanup and remove unnecessary do whiles
Diffstat (limited to 'src/code/z_effect.c')
| -rw-r--r-- | src/code/z_effect.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/code/z_effect.c b/src/code/z_effect.c index eeeecbd16..d024d0892 100644 --- a/src/code/z_effect.c +++ b/src/code/z_effect.c @@ -166,12 +166,11 @@ void Effect_DrawAll(GraphicsContext* gfxCtx) { } for (i = 0; i < BLURE_COUNT; i++) { - do { - if (1) {} // Necessary to match - if (sEffectContext.blures[i].status.active) { - sEffectInfoTable[EFFECT_BLURE1].draw(&sEffectContext.blures[i].effect, gfxCtx); - } - } while (0); // Necessary to match + if (sEffectContext.blures[i].status.active) { + sEffectInfoTable[EFFECT_BLURE1].draw(&sEffectContext.blures[i].effect, gfxCtx); + } + if (1) {} // Necessary to match + if (1) {} } for (i = 0; i < SHIELD_PARTICLE_COUNT; i++) { |
