diff --git a/wadsrc/static/zscript/games/duke/ui/menu.zs b/wadsrc/static/zscript/games/duke/ui/menu.zs index c1b9a6df4..dccfec24e 100644 --- a/wadsrc/static/zscript/games/duke/ui/menu.zs +++ b/wadsrc/static/zscript/games/duke/ui/menu.zs @@ -137,7 +137,7 @@ class ListMenuItemDukeLogo : ListMenuItem if (gameinfo.gametype & GAMEFLAG_PLUTOPAK) { int mclock = MSTime() * 120 / 1000; - int light = 223 + (Raze.bsin(mclock<<4) >> 9); + int light = 223 + Raze.bsin(mclock<<4, -9); let pe = Color(255, light, light, light); Screen.DrawTexture(TexMan.CheckForTexture("MENUPLUTOPAKSPRITE"), false, x + 100, 36, DTA_FullscreenScale, FSMode_Fit320x200Top, DTA_Color, pe, DTA_CenterOffsetRel, true); } @@ -176,7 +176,7 @@ class ListMenuItemDukeTextItem : ListMenuItemTextItem if (selected) { int mclock = MSTime() * 120 / 1000; - int light = 231 + (Raze.bsin(mclock<<5) >> 9); + int light = 231 + ((Raze.bsin(mclock<<5) * 3) >> 11); pe = Color(255, light, light, light); } else diff --git a/wadsrc/static/zscript/games/duke/ui/sbar_d.zs b/wadsrc/static/zscript/games/duke/ui/sbar_d.zs index 5e50b26e7..ded62e621 100644 --- a/wadsrc/static/zscript/games/duke/ui/sbar_d.zs +++ b/wadsrc/static/zscript/games/duke/ui/sbar_d.zs @@ -147,7 +147,7 @@ class DukeStatusBar : DukeCommonStatusBar { int s = -8; if (hud_flashing && p.last_extra > Duke.MaxPlayerHealth()) - s += Raze.bsin(Raze.GetBuildTime() << 5) / 768; + s += Raze.bsin(Raze.GetBuildTime() << 5, -10); int intens = clamp(255 - 6 * s, 0, 255); format = String.Format("%d", p.last_extra); DrawString(numberFont, format, (25, texty), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255., 0, 0); diff --git a/wadsrc/static/zscript/games/duke/ui/sbar_r.zs b/wadsrc/static/zscript/games/duke/ui/sbar_r.zs index fc05db7f4..33ccf2e6b 100644 --- a/wadsrc/static/zscript/games/duke/ui/sbar_r.zs +++ b/wadsrc/static/zscript/games/duke/ui/sbar_r.zs @@ -94,7 +94,7 @@ class RedneckStatusBar : DukeCommonStatusBar { int s = -8; if (hud_flashing && p.last_extra > Duke.MaxPlayerHealth()) - s += Raze.bsin(Raze.GetBuildTime() << 5) / 768; + s += Raze.bsin(Raze.GetBuildTime() << 5, -10); int intens = clamp(255 - 6 * s, 0, 255); format = String.Format("%d", p.last_extra); DrawString(numberFont, format, (26.5, -numberFont.mFont.GetHeight() * scale + 4), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255., 0, 0, (scale, scale)); diff --git a/wadsrc/static/zscript/games/exhumed/ui/menu.zs b/wadsrc/static/zscript/games/exhumed/ui/menu.zs index c483a5a26..52585f439 100644 --- a/wadsrc/static/zscript/games/exhumed/ui/menu.zs +++ b/wadsrc/static/zscript/games/exhumed/ui/menu.zs @@ -101,7 +101,7 @@ class ListMenuItemExhumedTextItem : ListMenuItemTextItem double y = mYpos + v.y / 2; int shade; - if (selected) shade = Raze.bsin(MSTime() * 16 * 120 / 1000) >> 9; + if (selected) shade = Raze.bsin(MSTime() * 16 * 120 / 1000, -9); else if (Selectable()) shade = 0; else shade = 25; let color = Raze.shadeToLight(shade);