diff --git a/wadsrc/static/zscript/games/blood/ui/menu.zs b/wadsrc/static/zscript/games/blood/ui/menu.zs index 82a6816ab..5f5b9054f 100644 --- a/wadsrc/static/zscript/games/blood/ui/menu.zs +++ b/wadsrc/static/zscript/games/blood/ui/menu.zs @@ -64,7 +64,7 @@ class ListMenuItemBloodTextItem : ListMenuItemTextItem int cr = generic_ui? Font.CR_GRAY : Font.CR_NATIVEPAL; int trans = generic_ui? 0 : Translation.MakeID(Translation_Remap, pal); - if (selected) shade = 32 - ((int(MSTimeF()) * 120 / 1000) & 63); + if (selected) shade = 32 - ((MSTime() * 120 / 1000) & 63); Screen.DrawText(gamefont, Font.CR_UNTRANSLATED, xpos+1, mYpos+1, mText, DTA_Color, 0xff000000, DTA_FullscreenScale, FSMode_Fit320x200); Screen.DrawText(gamefont, Font.CR_NATIVEPAL, xpos, mYpos, mText, DTA_TranslationIndex, trans, DTA_Color, Raze.shadeToLight(shade), DTA_FullscreenScale, FSMode_Fit320x200); diff --git a/wadsrc/static/zscript/games/duke/ui/menu.zs b/wadsrc/static/zscript/games/duke/ui/menu.zs index 3d757d9f6..69ff20ebf 100644 --- a/wadsrc/static/zscript/games/duke/ui/menu.zs +++ b/wadsrc/static/zscript/games/duke/ui/menu.zs @@ -60,7 +60,7 @@ class DukeMenuDelegate : RazeMenuDelegate void DrawCursor(double x, double y, double scale, bool right) { - uint mclock = uint(MSTimeF() * (120. / 1000.)); + uint mclock = MSTime() * 120 / 1000; uint frames = (gameinfo.gametype & GAMEFLAG_RRALL) ? 16 : 7; String picname; if (!right) picname= String.Format("SPINNINGNUKEICON%d", ((mclock >> 3) % frames)); @@ -136,7 +136,7 @@ class ListMenuItemDukeLogo : ListMenuItem Screen.DrawTexture(TexMan.CheckForTexture("INGAMEDUKETHREEDEE"), false, x, 29, DTA_FullscreenScale, FSMode_Fit320x200Top, DTA_CenterOffsetRel, true); if (gameinfo.gametype & GAMEFLAG_PLUTOPAK) { - let mclock = MSTimeF() * 120 / 1000; + let mclock = MSTimeF() * 120 / 1000; int light = 223 + Raze.bsin(mclock * 16, -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);