[Scummvm-git-logs] scummvm master -> 0540f7cf5c0fb4d2f113582c23ccc87c819949ca

mgerhardy noreply at scummvm.org
Sun Jul 10 18:14:15 UTC 2022


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:
0540f7cf5c TWINE: Pressing W to talk to people in sporty mode also makes you jump


Commit: 0540f7cf5c0fb4d2f113582c23ccc87c819949ca
    https://github.com/scummvm/scummvm/commit/0540f7cf5c0fb4d2f113582c23ccc87c819949ca
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2022-07-10T20:14:03+02:00

Commit Message:
TWINE: Pressing W to talk to people in sporty mode also makes you jump

... after the interaction finishes

see https://bugs.scummvm.org/ticket/13676

Changed paths:
    engines/twine/script/script_life_v1.cpp


diff --git a/engines/twine/script/script_life_v1.cpp b/engines/twine/script/script_life_v1.cpp
index 840b25063d5..388a72b3ed0 100644
--- a/engines/twine/script/script_life_v1.cpp
+++ b/engines/twine/script/script_life_v1.cpp
@@ -733,6 +733,13 @@ static int32 lMESSAGE(TwinEEngine *engine, LifeScriptContext &ctx) {
 	}
 	engine->_text->setFontCrossColor(ctx.actor->_talkColor);
 	engine->_scene->_talkingActor = ctx.actorIdx;
+
+	// if we are in sporty mode, we might have triggered a jump with the special action binding
+	// see https://bugs.scummvm.org/ticket/13676 for more details.
+	if (ctx.actor->isJumpAnimationActive()) {
+		engine->_animations->initAnim(AnimationTypes::kStanding, AnimType::kAnimationTypeLoop, AnimationTypes::kAnimInvalid, OWN_ACTOR_SCENE_INDEX);
+	}
+
 	engine->_text->drawTextProgressive(textIdx);
 	if (engine->_scene->_currentSceneIdx == LBA1SceneId::Principal_Island_Library && engine->_scene->_talkingActor == 8 && textIdx == TextId::kStarWarsFanBoy) {
 		engine->unlockAchievement("LBA_ACH_008");




More information about the Scummvm-git-logs mailing list