From 6cd5baf5c7e69e0e29dce1585cbc04a3652de4d0 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 6 Apr 2018 01:42:53 +0000 Subject: [PATCH] Replace a couple checks for qsetmode==200 with in3dmode(), because it's literally a macro that does that git-svn-id: https://svn.eduke32.com/eduke32@6814 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/common.cpp | 2 +- source/duke3d/src/osdfuncs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/common.cpp b/source/build/src/common.cpp index ba04de340..87026a1b7 100644 --- a/source/build/src/common.cpp +++ b/source/build/src/common.cpp @@ -244,7 +244,7 @@ void COMMON_clearbackground(int32_t numcols, int32_t numrows) UNREFERENCED_PARAMETER(numcols); # ifdef USE_OPENGL - if (getrendermode() >= REND_POLYMOST && qsetmode==200) + if (getrendermode() >= REND_POLYMOST && in3dmode()) { // glPushAttrib(GL_FOG_BIT); polymost_setFogEnabled(false); diff --git a/source/duke3d/src/osdfuncs.cpp b/source/duke3d/src/osdfuncs.cpp index 0241fb0f7..48e7e3625 100644 --- a/source/duke3d/src/osdfuncs.cpp +++ b/source/duke3d/src/osdfuncs.cpp @@ -142,7 +142,7 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows) UNREFERENCED_PARAMETER(numcols); # ifdef USE_OPENGL - if (getrendermode() >= REND_POLYMOST && qsetmode==200) + if (getrendermode() >= REND_POLYMOST && in3dmode()) { const int32_t i8n8 = OSD_SCALE(OSDCHAR_HEIGHT*numrows); // glPushAttrib(GL_FOG_BIT);