[Scummvm-git-logs] scummvm master -> 44182aae53e6a51bf89b175ece87299ef6a7a202

dreammaster noreply at scummvm.org
Sun May 17 05:16:29 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
44182aae53 MADS: PHANTOM: Fix Y positioning of animations


Commit: 44182aae53e6a51bf89b175ece87299ef6a7a202
    https://github.com/scummvm/scummvm/commit/44182aae53e6a51bf89b175ece87299ef6a7a202
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-17T15:16:19+10:00

Commit Message:
MADS: PHANTOM: Fix Y positioning of animations

Changed paths:
    engines/mads/madsv2/animview/animview.cpp


diff --git a/engines/mads/madsv2/animview/animview.cpp b/engines/mads/madsv2/animview/animview.cpp
index c4adaaf2e2e..98c5be871ba 100644
--- a/engines/mads/madsv2/animview/animview.cpp
+++ b/engines/mads/madsv2/animview/animview.cpp
@@ -459,7 +459,7 @@ static void animate() {
 		buffer_init(&scr_work, 320, height);
 		scr_inter = scr_work;
 
-		viewing_at_y = (height == 200) ? 0 : 200 - (height / 2);
+		viewing_at_y = (height == 200) ? 0 : (200 - height) / 2;
 		viewing_at_y2 = viewing_at_y;
 
 		buffer_fill(scr_work, 0);




More information about the Scummvm-git-logs mailing list