From 6062af562d00a22fc587c7e3ec8ee88ca5a00710 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Jul 2021 22:43:23 +0200 Subject: [PATCH] - allow external replacements of SW's 3D Realms logo to use their own palette. This was already present for Duke, but not here. --- wadsrc/static/zscript/games/sw/ui/screens.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/games/sw/ui/screens.zs b/wadsrc/static/zscript/games/sw/ui/screens.zs index 7fcc76e05..9f2b549ec 100644 --- a/wadsrc/static/zscript/games/sw/ui/screens.zs +++ b/wadsrc/static/zscript/games/sw/ui/screens.zs @@ -55,7 +55,7 @@ class SWDRealmsScreen : SkippableScreenJob override void Draw(double sm) { let tex = TexMan.CheckForTexture("THREED_REALMS_PIC", TexMan.Type_Any); - int translation = Translation.MakeID(Translation_BasePalette, DREALMSPAL); + int translation = TexMan.UseGamePalette(tex) ? Translation.MakeID(Translation_BasePalette, DREALMSPAL) : 0; Screen.DrawTexture(tex, false, 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_TranslationIndex, translation, DTA_LegacyRenderStyle, STYLE_Normal); } }