Clarify assignment in ternary condition as not a bug

git-svn-id: https://svn.eduke32.com/eduke32@7059 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-10 19:15:01 +00:00
parent 3e380309ce
commit 1c5ddca44a

View file

@ -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;
}