diff options
Diffstat (limited to 'engines/pink/actors/actor.cpp')
-rw-r--r-- | engines/pink/actors/actor.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/pink/actors/actor.cpp b/engines/pink/actors/actor.cpp index fefe1f9834..c10df16919 100644 --- a/engines/pink/actors/actor.cpp +++ b/engines/pink/actors/actor.cpp @@ -75,6 +75,10 @@ void Actor::endAction() { void Actor::setAction(const Common::String &name) { Action *newAction = findAction(name); + setAction(newAction); +} + +void Actor::setAction(Action *newAction) { if (_action) { _isActionEnd = 1; _action->end(); @@ -86,4 +90,13 @@ void Actor::setAction(const Common::String &name) { } } +void Actor::setAction(Action *newAction, bool unk) { + if (unk){ + assert(0); // want to see this + _isActionEnd = 1; + _action = newAction; + } + else setAction(newAction); +} + } // End of namespace Pink |