From f4bd30b9726feaea5b1d3fd8c5e7c6046ede8da9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Sep 2020 21:50:22 +0200 Subject: [PATCH] - Duke: Fixed noclip cheat message. --- source/games/duke/src/cheats.cpp | 2 +- source/glbackend/glbackend.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/cheats.cpp b/source/games/duke/src/cheats.cpp index f02768441..a200a4046 100644 --- a/source/games/duke/src/cheats.cpp +++ b/source/games/duke/src/cheats.cpp @@ -149,7 +149,7 @@ const char* GameInterface::GenericCheat(int player, int cheat) case CHT_NOCLIP: ud.clipping = 1 - ud.clipping; - return quoteMgr.GetQuote(ud.clipping ? QUOTE_CHEAT_NOCLIP : QUOTE_CHEAT_NOCLIP); + return quoteMgr.GetQuote(ud.clipping ? QUOTE_CHEAT_NOCLIP : QUOTE_CHEAT_CLIP); case CHT_UNLOCK: return cheatUnlock(); diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 5a5ddd9b5..1b243dfc2 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -235,7 +235,7 @@ void PolymostRenderState::Apply(FRenderState& state, GLState& oldState) oldState.DepthFunc = DepthFunc; } // Disable brightmaps if non-black fog is used. - if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f) + if (!(Flags & RF_FogDisabled) && ShadeDiv >= 1 / 1000.f && (GLInterface.useMapFog || FogColor)) { state.EnableFog(1); }