- Duke: Fixed noclip cheat message.

This commit is contained in:
Christoph Oelckers 2020-09-10 21:50:22 +02:00
parent 9ce8202eb1
commit f4bd30b972
2 changed files with 2 additions and 2 deletions

View File

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

View File

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