From 616672237d2c7c7816f47ebb8e77bde4719dbd52 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 11 Jul 2012 04:00:04 +0000 Subject: [PATCH] - Added PCD_SCRIPTWAITNAMED p-code. SVN r3756 (trunk) --- src/p_acs.cpp | 5 +++++ src/p_acs.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 05c815eb3..d9320fa02 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -5311,6 +5311,11 @@ scriptwait: pc++; goto scriptwait; + case PCD_SCRIPTWAITNAMED: + statedata = -FName(FBehavior::StaticLookupString(STACK(1))); + sp--; + goto scriptwait; + case PCD_CLEARLINESPECIAL: if (activationline != NULL) { diff --git a/src/p_acs.h b/src/p_acs.h index da363958b..7a432815b 100644 --- a/src/p_acs.h +++ b/src/p_acs.h @@ -598,8 +598,9 @@ public: PCD_STRCPYTOMAPCHRANGE, // [FDARI] input range (copy string to all/part of array) PCD_STRCPYTOWORLDCHRANGE, PCD_STRCPYTOGLOBALCHRANGE, - PCD_PUSHFUNCTION, -/*360*/ PCD_CALLSTACK, + PCD_PUSHFUNCTION, // from Eternity +/*360*/ PCD_CALLSTACK, // from Eternity + PCD_SCRIPTWAITNAMED, /*361*/ PCODE_COMMAND_COUNT };