mirror of https://github.com/ZDoom/raze-gles.git
C-CON: Implement "ifplaybackon" conditional, used by World Tour to determine if the replay feature is enabled. In our case, it is always false.
git-svn-id: https://svn.eduke32.com/eduke32@5893 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
259d51bec0
commit
3ce371d84d
|
@ -576,6 +576,7 @@ const char *keyw[] =
|
||||||
"for", // 396
|
"for", // 396
|
||||||
"nextsectorneighborz", // 397
|
"nextsectorneighborz", // 397
|
||||||
"clamp", // 398
|
"clamp", // 398
|
||||||
|
"ifplaybackon", // 399
|
||||||
"<null>"
|
"<null>"
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -5156,6 +5157,7 @@ repeatcase:
|
||||||
case CON_IFAWAYFROMWALL:
|
case CON_IFAWAYFROMWALL:
|
||||||
case CON_IFCANSEETARGET:
|
case CON_IFCANSEETARGET:
|
||||||
case CON_IFNOSOUNDS:
|
case CON_IFNOSOUNDS:
|
||||||
|
case CON_IFPLAYBACKON:
|
||||||
{
|
{
|
||||||
intptr_t offset;
|
intptr_t offset;
|
||||||
intptr_t lastScriptPtr = (g_scriptPtr-&apScript[0]-1);
|
intptr_t lastScriptPtr = (g_scriptPtr-&apScript[0]-1);
|
||||||
|
|
|
@ -1128,6 +1128,7 @@ enum ScriptKeywords_t
|
||||||
CON_FOR, // 396
|
CON_FOR, // 396
|
||||||
CON_NEXTSECTORNEIGHBORZ,// 397
|
CON_NEXTSECTORNEIGHBORZ,// 397
|
||||||
CON_CLAMP, // 398
|
CON_CLAMP, // 398
|
||||||
|
CON_IFPLAYBACKON, // 399
|
||||||
CON_END
|
CON_END
|
||||||
};
|
};
|
||||||
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
|
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
|
||||||
|
|
|
@ -3719,6 +3719,10 @@ nullquote:
|
||||||
VM_CONDITIONAL(g_netServer != NULL);
|
VM_CONDITIONAL(g_netServer != NULL);
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
case CON_IFPLAYBACKON:
|
||||||
|
VM_CONDITIONAL(0);
|
||||||
|
continue;
|
||||||
|
|
||||||
case CON_OPERATE:
|
case CON_OPERATE:
|
||||||
insptr++;
|
insptr++;
|
||||||
if (sector[vm.pSprite->sectnum].lotag == 0)
|
if (sector[vm.pSprite->sectnum].lotag == 0)
|
||||||
|
|
Loading…
Reference in New Issue