summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-01 12:18:10 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-01 12:18:10 +0100
commit64b28c073052535cd0ce444292bdfda1629a45d8 (patch)
tree649d947c9c624a760ec1c4214309bcadba66ceca /src/control/Script.h
parentremoved debug leftovers (diff)
downloadre3-64b28c073052535cd0ce444292bdfda1629a45d8.tar
re3-64b28c073052535cd0ce444292bdfda1629a45d8.tar.gz
re3-64b28c073052535cd0ce444292bdfda1629a45d8.tar.bz2
re3-64b28c073052535cd0ce444292bdfda1629a45d8.tar.lz
re3-64b28c073052535cd0ce444292bdfda1629a45d8.tar.xz
re3-64b28c073052535cd0ce444292bdfda1629a45d8.tar.zst
re3-64b28c073052535cd0ce444292bdfda1629a45d8.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 18d148bf..5f3175f0 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -382,6 +382,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;