- Fixed: PCD_SCRIPTWAITDIRECT had different semantics than PCD_SCRIPTWAIT.

SVN r3754 (trunk)
This commit is contained in:
Randy Heit 2012-07-11 03:14:08 +00:00
parent ba00e3a185
commit 95b9eae242

View file

@ -5297,20 +5297,19 @@ int DLevelScript::RunScript ()
case PCD_SCRIPTWAIT:
statedata = STACK(1);
sp--;
scriptwait:
if (controller->RunningScripts.CheckKey(statedata) != NULL)
state = SCRIPT_ScriptWait;
else
state = SCRIPT_ScriptWaitPre;
sp--;
PutLast ();
break;
case PCD_SCRIPTWAITDIRECT:
state = SCRIPT_ScriptWait;
statedata = uallong(pc[0]);
pc++;
PutLast ();
break;
goto scriptwait;
case PCD_CLEARLINESPECIAL:
if (activationline != NULL)