From b3de0843a9cd66e133a33b467da1f6ba1a572db9 Mon Sep 17 00:00:00 2001 From: lukaslw Date: Thu, 6 Mar 2014 04:20:47 +0100 Subject: DRACI: Opening inventory during movements and actions. --- engines/draci/walking.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/draci/walking.h') diff --git a/engines/draci/walking.h b/engines/draci/walking.h index ee2b48d083..fcdef3830e 100644 --- a/engines/draci/walking.h +++ b/engines/draci/walking.h @@ -110,6 +110,8 @@ public: _lastAnimPhase = 0; _turningFinished = 0; _callbackOffset = 0; + _callbackOffsetLast = 0; + _callbackLast = 0; stopWalking(); } @@ -124,6 +126,7 @@ public: void setCallback(const GPL2Program *program, uint16 offset); void callback(); + void callbackLast(); bool isActive() const { return _path.size() > 0; } @@ -157,7 +160,9 @@ private: bool _turningFinished; const GPL2Program *_callback; + const GPL2Program *_callbackLast; uint16 _callbackOffset; + uint16 _callbackOffsetLast; // Initiates turning of the dragon into the direction for the next // segment / after walking. Returns false when there is nothing left -- cgit v1.2.3