From 450244e258a4dd13d36abb3bb2eff192cfd86608 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 22 Jan 2019 17:56:37 +0000 Subject: [PATCH] Fix missing/invalid palswaps and shades in automap with Polymost Patch from Nuke.YKT. git-svn-id: https://svn.eduke32.com/eduke32@7314 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index dcea93f65..8b9f6663f 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -7491,7 +7491,8 @@ void polymost_fillpolygon(int32_t npoints) if (!(pth->flags & PTH_INDEXED)) polymost_usePaletteIndexing(false); } - else + + if (videoGetRenderMode() == REND_POLYMOST) polymost_updatePalette(); float const f = getshadefactor(globalshade); @@ -7570,7 +7571,8 @@ int32_t polymost_drawtilescreen(int32_t tilex, int32_t tiley, int32_t wallnum, i if (!(pth->flags & PTH_INDEXED)) polymost_usePaletteIndexing(false); } - else + + if (videoGetRenderMode() == REND_POLYMOST) polymost_updatePalette(); glDisable(GL_ALPHA_TEST);