diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 6efa0d2ac..234fc0c03 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -576,6 +576,7 @@ const char *keyw[] = "for", // 396 "nextsectorneighborz", // 397 "clamp", // 398 + "ifplaybackon", // 399 "" }; #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); diff --git a/polymer/eduke32/source/gamedef.h b/polymer/eduke32/source/gamedef.h index 212bbd268..ab22309ae 100644 --- a/polymer/eduke32/source/gamedef.h +++ b/polymer/eduke32/source/gamedef.h @@ -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 diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index e24c97abe..ffa370e87 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -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)