Skip to content

Commit

Permalink
AGS: Engine: fix ypermove comparison
Browse files Browse the repository at this point in the history
From upstream 9cf99a3583fcb05dd983d9ce06a513851e47dd57
  • Loading branch information
tag2015 committed Nov 6, 2024
1 parent e8ddc07 commit 8cbd209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/ags/engine/main/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8cbd209

Please sign in to comment.