mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- buildutils: Replace sintable[]
use within SW's sbar.cpp with bsin()
/bcos()
.
This commit is contained in:
parent
f1d9c3ea9b
commit
f57372237c
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ private:
|
||||||
{
|
{
|
||||||
int s = -8;
|
int s = -8;
|
||||||
if (althud_flashing && u->Health > u->MaxHealth)
|
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);
|
int intens = clamp(255 - 4 * s, 0, 255);
|
||||||
auto pe = PalEntry(255, intens, intens, intens);
|
auto pe = PalEntry(255, intens, intens, intens);
|
||||||
format.Format("%d", u->Health);
|
format.Format("%d", u->Health);
|
||||||
|
|
Loading…
Reference in a new issue