[Scummvm-git-logs] scummvm master -> bd84ea7c72cd7b0677e3c214a36bbf8f2529aee2
klusark
noreply at scummvm.org
Tue Nov 10 23:13:30 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
bd84ea7c72 EMI: Turn on the spot before walking when facing away
Commit: bd84ea7c72cd7b0677e3c214a36bbf8f2529aee2
https://github.com/scummvm/scummvm/commit/bd84ea7c72cd7b0677e3c214a36bbf8f2529aee2
Author: Joel Teichroeb (joel at teichroeb.net)
Date: 2026-11-10T18:13:19-05:00
Commit Message:
EMI: Turn on the spot before walking when facing away
Assisted-by: Claude:claude-sonnet-5-5
Changed paths:
engines/grim/actor.cpp
diff --git a/engines/grim/actor.cpp b/engines/grim/actor.cpp
index 81be0543ed0..10060290b76 100644
--- a/engines/grim/actor.cpp
+++ b/engines/grim/actor.cpp
@@ -1536,6 +1536,15 @@ void Actor::updateWalk() {
turnTo(destPos, true);
+ // In EMI, if the actor faces more than 80 degrees away from where it's
+ // walking, it turns in place before moving.
+ if (g_grim->getGameType() == GType_MONKEY4) {
+ Math::Angle remaining = _moveYaw - _yaw;
+ remaining.normalize(-180);
+ if (ABS(remaining.getDegrees()) >= 80.f)
+ return;
+ }
+
dir = destPos - _pos;
dir.normalize();
_pos += dir * walkAmt;
More information about the Scummvm-git-logs
mailing list