- fixed color of Duke's "ATOMIC" menu sprite.

This commit is contained in:
Christoph Oelckers 2022-10-04 23:04:00 +02:00
parent bc018dd946
commit 5aa832f536
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ class ListMenuItemDukeLogo : ListMenuItem
if (gameinfo.gametype & GAMEFLAG_PLUTOPAK)
{
let mclock = MSTimeF() * 120 / 1000;
int light = 223 + Raze.bsin(mclock * 16) >> 9;
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);
}

View file

@ -142,7 +142,7 @@ struct Raze
native static Color shadeToLight(int shade);
native static String PlayerName(int i);
static int bsin(int angle) { return int(sin(angle * (360. / 2048)) * 16384); }
static int bsin(double angle) { return int(sin(angle * (360. / 2048)) * 16384); }
native static TextureID PickTexture(TextureID texid);
native static int GetBuildTime();
native static Font PickBigFont(String cmptext = "");