[Scummvm-git-logs] scummvm master -> 8cbd20943e2521a72274ae84228ee91c38fe9911
tag2015
noreply at scummvm.org
Wed Nov 6 23:10:29 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:
8cbd20943e AGS: Engine: fix ypermove comparison
Commit: 8cbd20943e2521a72274ae84228ee91c38fe9911
https://github.com/scummvm/scummvm/commit/8cbd20943e2521a72274ae84228ee91c38fe9911
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2024-11-07T00:05:37+01:00
Commit Message:
AGS: Engine: fix ypermove comparison
>From upstream 9cf99a3583fcb05dd983d9ce06a513851e47dd57
Changed paths:
engines/ags/engine/main/update.cpp
diff --git a/engines/ags/engine/main/update.cpp b/engines/ags/engine/main/update.cpp
index 58a33cf2934..d09b787800c 100644
--- a/engines/ags/engine/main/update.cpp
+++ b/engines/ags/engine/main/update.cpp
@@ -84,7 +84,7 @@ static void movelist_handle_targetfix(const fixed &xpermove, const fixed &ypermo
else if ((ypermove & 0xffff0000) == 0)
targety -= tfix;
// Y per move is -1 exactly, don't snap to finish
- else if (ypermove == 0xffff0000) {
+ else if ((ypermove & 0xffffffff) == 0xffff0000) {
}
// Y per move is > -1, so finish the move
else if ((ypermove & 0xffff0000) == 0xffff0000)
More information about the Scummvm-git-logs
mailing list