From b854ddff4173f013d6f56402f9f1ebdee1f5861f Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 19 May 2019 03:54:00 +0000 Subject: [PATCH] Fix a potentially funny bug in the CON parser I don't think anyone actually ran into this. git-svn-id: https://svn.eduke32.com/eduke32@7644 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 458d6ae78..885ce36aa 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -4380,7 +4380,7 @@ setvarvar: { j = C_GetKeyword(); - if (j == CON_ELSE || j == CON_LEFTBRACE) + if (j == CON_ELSE) g_checkingIfElse++; } continue; @@ -4433,7 +4433,7 @@ ifvar: { j = C_GetKeyword(); - if (j == CON_ELSE || j == CON_LEFTBRACE) + if (j == CON_ELSE) g_checkingIfElse++; } @@ -4941,7 +4941,7 @@ repeatcase: j = C_GetKeyword(); - if (j == CON_ELSE || j == CON_LEFTBRACE) + if (j == CON_ELSE) g_checkingIfElse++; continue; @@ -4991,7 +4991,7 @@ repeatcase: j = C_GetKeyword(); - if (j == CON_ELSE || j == CON_LEFTBRACE) + if (j == CON_ELSE) g_checkingIfElse++; continue;