- buildutils: Replace sintable[] use within SW's sbar.cpp with bsin()/bcos().

This commit is contained in:
Mitchell Richters 2020-11-15 21:19:42 +11:00 committed by Christoph Oelckers
parent f1d9c3ea9b
commit f57372237c

View file

@ -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);