From 8cbd20943e2521a72274ae84228ee91c38fe9911 Mon Sep 17 00:00:00 2001 From: Walter Agazzi Date: Thu, 7 Nov 2024 00:05:04 +0100 Subject: [PATCH] AGS: Engine: fix ypermove comparison From upstream 9cf99a3583fcb05dd983d9ce06a513851e47dd57 --- engines/ags/engine/main/update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/ags/engine/main/update.cpp b/engines/ags/engine/main/update.cpp index 58a33cf2934f..d09b787800cb 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)