[Scummvm-git-logs] scummvm master -> 2df58781624be624aa905273d23e71c0b1463a34

scemino noreply at scummvm.org
Thu Apr 18 08:03:07 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2df5878162 TWP: Fix actor keeping mouth open again (bug #15075)


Commit: 2df58781624be624aa905273d23e71c0b1463a34
    https://github.com/scummvm/scummvm/commit/2df58781624be624aa905273d23e71c0b1463a34
Author: scemino (scemino74 at gmail.com)
Date: 2024-04-18T10:03:00+02:00

Commit Message:
TWP: Fix actor keeping mouth open again (bug #15075)

Changed paths:
    engines/twp/object.cpp


diff --git a/engines/twp/object.cpp b/engines/twp/object.cpp
index 60b915d466d..19cd87dd41c 100644
--- a/engines/twp/object.cpp
+++ b/engines/twp/object.cpp
@@ -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;
 }
 
@@ -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 {




More information about the Scummvm-git-logs mailing list