- reinstated integer MSTime where needed.

This commit is contained in:
Christoph Oelckers 2022-10-09 13:56:07 +02:00
parent 00b812a5ff
commit e14182be99
2 changed files with 3 additions and 3 deletions

View file

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

View file

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