From 0309ba314156003d45123694e219fa5bdad9a90c Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 21 Feb 2012 19:33:09 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/sector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index 57a5cbf42..75fc6d6b8 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -2596,7 +2596,7 @@ void G_HandleSharedKeys(int32_t snum) P_UpdateScreenPal(p); p->inven_icon = 5; A_PlaySound(NITEVISION_ONOFF,p->i); - P_DoQuote(QUOTE_NVG_OFF-p->heat_on,p); + P_DoQuote(QUOTE_NVG_OFF-!!p->heat_on,p); } }