diff --git a/source/sw/src/sbar.cpp b/source/sw/src/sbar.cpp index 5216c02e2..1b5d8bfbb 100644 --- a/source/sw/src/sbar.cpp +++ b/source/sw/src/sbar.cpp @@ -803,7 +803,7 @@ private: { int s = -8; if (althud_flashing && u->Health > u->MaxHealth) - s += (sintable[(PlayClock << 5) & 2047] >> 10); + s += bsin(PlayClock << 5, -10); int intens = clamp(255 - 4 * s, 0, 255); auto pe = PalEntry(255, intens, intens, intens); format.Format("%d", u->Health);