diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-11 22:54:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 22:54:02 +0100 |
commit | 33f89dba2587374ae04059656879b5f849cc24d2 (patch) | |
tree | 109d0bbbb1834b9ad1f90266c08821e8561b511a /src/control/Script.h | |
parent | Merge pull request #342 from Nick007J/master (diff) | |
parent | more utils (diff) | |
download | re3-33f89dba2587374ae04059656879b5f849cc24d2.tar re3-33f89dba2587374ae04059656879b5f849cc24d2.tar.gz re3-33f89dba2587374ae04059656879b5f849cc24d2.tar.bz2 re3-33f89dba2587374ae04059656879b5f849cc24d2.tar.lz re3-33f89dba2587374ae04059656879b5f849cc24d2.tar.xz re3-33f89dba2587374ae04059656879b5f849cc24d2.tar.zst re3-33f89dba2587374ae04059656879b5f849cc24d2.zip |
Diffstat (limited to 'src/control/Script.h')
-rw-r--r-- | src/control/Script.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h index 59054be3..b6844b6c 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -414,6 +414,14 @@ class CRunningScript public: void SetIP(uint32 ip) { m_nIp = ip; } CRunningScript* GetNext() const { return next; } + void BuildFromSaved(const CRunningScript& pSaved) + { + CRunningScript* n = next; + CRunningScript* p = prev; + *this = pSaved; + next = n; + prev = p; + } void UpdateTimers(float timeStep) { m_anLocalVariables[NUM_LOCAL_VARS] += timeStep; m_anLocalVariables[NUM_LOCAL_VARS + 1] += timeStep; |