From 8ac88ab4da0dc411e37672daabdb29b95d11c21a Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 4 Dec 2011 00:31:20 +0000 Subject: [PATCH] Fix issue reported at http://forums.duke4.net/topic/5068-bug-introduced-in-old-versions-of-eduke32 git-svn-id: https://svn.eduke32.com/eduke32@2147 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 2980b093d..868b82657 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -1773,9 +1773,9 @@ static int32_t C_CheckMalformedBranch(intptr_t lastScriptPtr) static int32_t C_CheckEmptyBranch(int32_t tw, intptr_t lastScriptPtr) { - // ifrnd and ifhitweapon actually do something when the condition is executed + // ifrnd, ifhitweapon and ifcansee actually do something when the condition is executed if ((Bstrncmp(keyw[tw], "if", 2) && tw != CON_ELSE) || - tw == CON_IFRND || tw == CON_IFHITWEAPON) + tw == CON_IFRND || tw == CON_IFHITWEAPON || tw == CON_IFCANSEE) { g_ifElseAborted = 0; return 0;