mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-09 06:50:49 +00:00
Hack to parse checkbossXseekstate like Todd's code did
This commit is contained in:
parent
24c2b2473d
commit
fdcf92e28b
1 changed files with 7 additions and 1 deletions
|
@ -371,8 +371,11 @@ static inline void C_SkipSpace(void)
|
||||||
textptr++;
|
textptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int32_t g_gotComment = 0;
|
||||||
|
|
||||||
static int32_t C_SkipComments(void)
|
static int32_t C_SkipComments(void)
|
||||||
{
|
{
|
||||||
|
g_gotComment = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
switch (*textptr)
|
switch (*textptr)
|
||||||
|
@ -393,6 +396,7 @@ static int32_t C_SkipComments(void)
|
||||||
if (!(g_errorCnt || g_warningCnt) && g_scriptDebug > 1)
|
if (!(g_errorCnt || g_warningCnt) && g_scriptDebug > 1)
|
||||||
initprintf("%s:%d: debug: got comment.\n",g_scriptFileName,g_lineNumber);
|
initprintf("%s:%d: debug: got comment.\n",g_scriptFileName,g_lineNumber);
|
||||||
C_NextLine();
|
C_NextLine();
|
||||||
|
g_gotComment = 1;
|
||||||
continue;
|
continue;
|
||||||
case '*': // beginning of a C style comment
|
case '*': // beginning of a C style comment
|
||||||
if (!(g_errorCnt || g_warningCnt) && g_scriptDebug > 1)
|
if (!(g_errorCnt || g_warningCnt) && g_scriptDebug > 1)
|
||||||
|
@ -420,6 +424,7 @@ static int32_t C_SkipComments(void)
|
||||||
initprintf("%s:%d: debug: got end of comment block.\n",g_scriptFileName,g_lineNumber);
|
initprintf("%s:%d: debug: got end of comment block.\n",g_scriptFileName,g_lineNumber);
|
||||||
|
|
||||||
textptr+=2;
|
textptr+=2;
|
||||||
|
g_gotComment = 1;
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
C_ReportError(-1);
|
C_ReportError(-1);
|
||||||
|
@ -1654,7 +1659,8 @@ static int32_t C_ParseCommand(int32_t loop)
|
||||||
|
|
||||||
g_scriptPtr++; //Leave a spot for the fail location
|
g_scriptPtr++; //Leave a spot for the fail location
|
||||||
|
|
||||||
C_ParseCommand(0);
|
if (!g_gotComment)
|
||||||
|
C_ParseCommand(0);
|
||||||
|
|
||||||
if (C_CheckEmptyBranch(tw, lastScriptPtr))
|
if (C_CheckEmptyBranch(tw, lastScriptPtr))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue