From f20bd94269fdbe941afbe674ec95141d64df5bd1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Jan 2022 23:25:37 +0100 Subject: [PATCH] - the gl_fogmode hack is no longer needed --- source/build/src/polymost.cpp | 2 -- source/core/rendering/hw_entrypoint.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 4fa7c1d93..de5957a76 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -3328,8 +3328,6 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz, pm_spritesortcnt = 0; checkRotatedWalls(); - if (gl_fogmode == 1) gl_fogmode = 2; // only radial fog works with Build's screwed up coordinate system. - // Update starting sector number (common to classic and Polymost). // ADJUST_GLOBALCURSECTNUM. if (!fromoutside) diff --git a/source/core/rendering/hw_entrypoint.cpp b/source/core/rendering/hw_entrypoint.cpp index 602146e01..26fa96575 100644 --- a/source/core/rendering/hw_entrypoint.cpp +++ b/source/core/rendering/hw_entrypoint.cpp @@ -316,8 +316,6 @@ void render_drawrooms(DCoreActor* playersprite, const vec3_t& position, int sect { checkRotatedWalls(); - if (gl_fogmode == 1) gl_fogmode = 2; // still needed? - updatesector(position.X, position.Y, §num); if (sectnum < 0) return;