mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
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
3 changed files with 7 additions and 0 deletions
|
@ -576,6 +576,7 @@ const char *keyw[] =
|
|||
"for", // 396
|
||||
"nextsectorneighborz", // 397
|
||||
"clamp", // 398
|
||||
"ifplaybackon", // 399
|
||||
"<null>"
|
||||
};
|
||||
#endif
|
||||
|
@ -5156,6 +5157,7 @@ repeatcase:
|
|||
case CON_IFAWAYFROMWALL:
|
||||
case CON_IFCANSEETARGET:
|
||||
case CON_IFNOSOUNDS:
|
||||
case CON_IFPLAYBACKON:
|
||||
{
|
||||
intptr_t offset;
|
||||
intptr_t lastScriptPtr = (g_scriptPtr-&apScript[0]-1);
|
||||
|
|
|
@ -1128,6 +1128,7 @@ enum ScriptKeywords_t
|
|||
CON_FOR, // 396
|
||||
CON_NEXTSECTORNEIGHBORZ,// 397
|
||||
CON_CLAMP, // 398
|
||||
CON_IFPLAYBACKON, // 399
|
||||
CON_END
|
||||
};
|
||||
// KEEPINSYNC with the keyword list in lunatic/con_lang.lua
|
||||
|
|
|
@ -3719,6 +3719,10 @@ nullquote:
|
|||
VM_CONDITIONAL(g_netServer != NULL);
|
||||
continue;
|
||||
|
||||
case CON_IFPLAYBACKON:
|
||||
VM_CONDITIONAL(0);
|
||||
continue;
|
||||
|
||||
case CON_OPERATE:
|
||||
insptr++;
|
||||
if (sector[vm.pSprite->sectnum].lotag == 0)
|
||||
|
|
Loading…
Reference in a new issue