diff --git a/src/effects/magiclamp/magiclamp.cpp b/src/effects/magiclamp/magiclamp.cpp index 55291d3b24..9648c1e7bb 100644 --- a/src/effects/magiclamp/magiclamp.cpp +++ b/src/effects/magiclamp/magiclamp.cpp @@ -182,10 +182,13 @@ void MagicLampEffect::apply(EffectWindow *w, int mask, WindowPaintData &data, Wi } #define SANITIZE_PROGRESS \ - if (p_progress[0] < 0) \ + if (p_progress[0] < 0) { \ p_progress[0] = -p_progress[0]; \ - if (p_progress[1] < 0) \ - p_progress[1] = -p_progress[1] + } \ + if (p_progress[1] < 0) { \ + p_progress[1] = -p_progress[1]; \ + } + #define SET_QUADS(_SET_A_, _A_, _DA_, _SET_B_, _B_, _O0_, _O1_, _O2_, _O3_) \ quad[0]._SET_A_((icon._A_() + icon._DA_() * (quad[0]._A_() / geo._DA_()) - (quad[0]._A_() + geo._A_())) * p_progress[_O0_] + quad[0]._A_()); \ quad[1]._SET_A_((icon._A_() + icon._DA_() * (quad[1]._A_() / geo._DA_()) - (quad[1]._A_() + geo._A_())) * p_progress[_O1_] + quad[1]._A_()); \