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:
hendricks266 2016-10-14 07:40:41 +00:00
parent 259d51bec0
commit 3ce371d84d
3 changed files with 7 additions and 0 deletions

View File

@ -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);

View File

@ -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

View File

@ -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)