Skip to content

Commit

Permalink
TWP: Fix actor keeping mouth open again (bug #15075)
Browse files Browse the repository at this point in the history
  • Loading branch information
scemino committed Apr 18, 2024
1 parent 4bc4412 commit 2df5878
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engines/twp/object.cpp
Expand Up @@ -121,7 +121,11 @@ Common::SharedPtr<Object> Object::createActor() {
result->showLayer("blink", false);
result->showLayer("eyes_left", false);
result->showLayer("eyes_right", false);
result->setHeadIndex(1);
result->showLayer("head2", false);
result->showLayer("head3", false);
result->showLayer("head4", false);
result->showLayer("head5", false);
result->showLayer("head6", false);
return result;
}

Expand Down Expand Up @@ -543,7 +547,7 @@ void Object::setAnimationNames(const Common::String &head, const Common::String
}

showLayer(getAnimName(HEAD_ANIMNAME), true);
setHeadIndex(0);
setHeadIndex(1);
if (!standAnim.empty()) {
_animNames[STAND_ANIMNAME] = standAnim;
} else {
Expand Down

0 comments on commit 2df5878

Please sign in to comment.