[Scummvm-git-logs] scummvm master -> 1bf264d5f62231e0eedfcb1b580c57aa3159bcc6
athrxx
athrxx at scummvm.org
Sun Jul 4 19:26:44 UTC 2021
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:
1bf264d5f6 SCUMM: (SCUMM3) - fix bug/typo in walk code
Commit: 1bf264d5f62231e0eedfcb1b580c57aa3159bcc6
https://github.com/scummvm/scummvm/commit/1bf264d5f62231e0eedfcb1b580c57aa3159bcc6
Author: athrxx (athrxx at scummvm.org)
Date: 2021-07-04T21:23:24+02:00
Commit Message:
SCUMM: (SCUMM3) - fix bug/typo in walk code
Changed paths:
engines/scumm/actor.cpp
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index 4dee0b24b7..364a51092e 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -591,7 +591,7 @@ int Actor::actorWalkStep() {
_pos.y -= 1;
}
} else if (_vm->_game.version == 3) {
- if ((_walkdata.xfrac += _walkdata.v3XAdd) > _v3stepThreshold) {
+ if ((_walkdata.xfrac += _walkdata.v3XAdd) >= _v3stepThreshold) {
_pos.x += _walkdata.deltaXFactor;
_walkdata.xfrac -= _v3stepThreshold;
}
More information about the Scummvm-git-logs
mailing list