From 1c5ddca44a1361dd6c2a56e2c1b5c66640ea979d Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 10 Oct 2018 19:15:01 +0000 Subject: [PATCH] Clarify assignment in ternary condition as not a bug git-svn-id: https://svn.eduke32.com/eduke32@7059 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/sector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/duke3d/src/sector.cpp b/source/duke3d/src/sector.cpp index 4f80d5c32..b5edf4fe9 100644 --- a/source/duke3d/src/sector.cpp +++ b/source/duke3d/src/sector.cpp @@ -3210,6 +3210,7 @@ void P_CheckSectors(int playerNum) { actor[nearSprite].t_data[0] = 1; sprite[nearSprite].owner = pPlayer->i; + // assignment of buttonpalette here is not a bug ud.secretlevel = (pPlayer->buttonpalette = sprite[nearSprite].pal) ? sprite[nearSprite].lotag : 0; }