[Scummvm-git-logs] scummvm master -> a0ee0af22747e3167d50e30fe9ffbd8878addc5b
athrxx
noreply at scummvm.org
Sat Mar 1 00:41:27 UTC 2025
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:
a0ee0af227 SCUMM: fix bug no. 15766
Commit: a0ee0af22747e3167d50e30fe9ffbd8878addc5b
https://github.com/scummvm/scummvm/commit/a0ee0af22747e3167d50e30fe9ffbd8878addc5b
Author: athrxx (athrxx at scummvm.org)
Date: 2025-03-01T01:40:39+01:00
Commit Message:
SCUMM: fix bug no. 15766
(ZAK: Wrong positioning of the devotee)
Changed paths:
engines/scumm/actor.cpp
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 0a3370cf305..a20e27a3fe8 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -1662,7 +1662,7 @@ void Actor::faceToObject(int obj) {
} else {
_vm->getObjectOrActorWidth(obj, width);
dir = (_pos.x < x2) ? 1 : 0;
- if (abs(_pos.x - x2) < width / 2)
+ if (abs(_pos.x - x2) < (_vm->_game.version > 2 ? width / 2 : 2))
dir = (_pos.y > y2) ? 3 : 2;
dir = oldDirToNewDir(dir);
More information about the Scummvm-git-logs
mailing list