From d2f980694ba81538f4d15bcfcddf91db6ac8d171 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 10 Oct 2018 19:15:33 +0000 Subject: [PATCH] P_UpdateScreenPal() seems to belong here instead git-svn-id: https://svn.eduke32.com/eduke32@7065 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/sector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/sector.cpp b/source/duke3d/src/sector.cpp index b5edf4fe9..97832b992 100644 --- a/source/duke3d/src/sector.cpp +++ b/source/duke3d/src/sector.cpp @@ -3256,10 +3256,10 @@ void P_CheckSectors(int playerNum) int const playerSectnum = pPlayer->cursectnum; pPlayer->cursectnum = SECT(spriteNum); + P_UpdateScreenPal(pPlayer); pPlayer->cursectnum = playerSectnum; pPlayer->newowner = spriteNum; - P_UpdateScreenPal(pPlayer); P_UpdatePosWhenViewingCam(pPlayer); return;