QUOTE_NVG_OFF-p->heat_on --> QUOTE_NVG_OFF-!!p->heat_on in sector.c.

Because: 1) It used to be like this; 2) guard against bad CON input.

git-svn-id: https://svn.eduke32.com/eduke32@2378 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-02-21 19:33:09 +00:00
parent 0f933a8522
commit 0309ba3141

View file

@ -2596,7 +2596,7 @@ void G_HandleSharedKeys(int32_t snum)
P_UpdateScreenPal(p); P_UpdateScreenPal(p);
p->inven_icon = 5; p->inven_icon = 5;
A_PlaySound(NITEVISION_ONOFF,p->i); A_PlaySound(NITEVISION_ONOFF,p->i);
P_DoQuote(QUOTE_NVG_OFF-p->heat_on,p); P_DoQuote(QUOTE_NVG_OFF-!!p->heat_on,p);
} }
} }