From f57372237c16c179c9cb32d51876a72891e12a3c Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 15 Nov 2020 21:19:42 +1100 Subject: [PATCH] - buildutils: Replace `sintable[]` use within SW's sbar.cpp with `bsin()`/`bcos()`. --- source/sw/src/sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);