mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
CON: Add undefinegamefunc.
git-svn-id: https://svn.eduke32.com/eduke32@6187 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b0d9e94004
commit
81a6f29dd4
2 changed files with 21 additions and 0 deletions
|
@ -573,6 +573,7 @@ const char *keyw[] =
|
|||
"ifplaybackon", // 399
|
||||
"divscale", // 400
|
||||
"scalevar", // 401
|
||||
"undefinegamefunc", // 402
|
||||
"<null>"
|
||||
};
|
||||
#endif
|
||||
|
@ -5419,6 +5420,25 @@ repeatcase:
|
|||
|
||||
continue;
|
||||
|
||||
case CON_UNDEFINEGAMEFUNC:
|
||||
g_scriptPtr--;
|
||||
C_GetNextValue(LABEL_DEFINE);
|
||||
g_scriptPtr--;
|
||||
j = *g_scriptPtr;
|
||||
|
||||
if (EDUKE32_PREDICT_FALSE((unsigned)j > NUMGAMEFUNCTIONS-1))
|
||||
{
|
||||
initprintf("%s:%d: error: function number exceeds number of game functions.\n",
|
||||
g_scriptFileName,g_lineNumber);
|
||||
g_errorCnt++;
|
||||
C_NextLine();
|
||||
continue;
|
||||
}
|
||||
|
||||
gamefunctions[j][0] = '\0';
|
||||
|
||||
continue;
|
||||
|
||||
case CON_DEFINESKILLNAME:
|
||||
g_scriptPtr--;
|
||||
|
||||
|
|
|
@ -1131,6 +1131,7 @@ enum ScriptKeywords_t
|
|||
CON_IFPLAYBACKON, // 399
|
||||
CON_DIVSCALE, // 400
|
||||
CON_SCALEVAR, // 401
|
||||
CON_UNDEFINEGAMEFUNC, // 402
|
||||
CON_END
|
||||
};
|
||||
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
|
||||
|
|
Loading…
Reference in a new issue