From 5aa832f5360edc6bab44242e3772aaf52bad49ed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 4 Oct 2022 23:04:00 +0200 Subject: [PATCH] - fixed color of Duke's "ATOMIC" menu sprite. --- wadsrc/static/zscript/games/duke/ui/menu.zs | 2 +- wadsrc/static/zscript/razebase.zs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/games/duke/ui/menu.zs b/wadsrc/static/zscript/games/duke/ui/menu.zs index 18f55d06d..cf3fa8475 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) { 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); } diff --git a/wadsrc/static/zscript/razebase.zs b/wadsrc/static/zscript/razebase.zs index 426b935b9..69a1be505 100644 --- a/wadsrc/static/zscript/razebase.zs +++ b/wadsrc/static/zscript/razebase.zs @@ -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 = "");