[Scummvm-git-logs] scummvm master -> 9d937c98d8d545c0ec63d0c1510371e2f5494c4f

dreammaster noreply at scummvm.org
Sat Aug 1 12:09:01 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:
9d937c98d8 MADS: NEBULAR: Fix showing interface background animations


Commit: 9d937c98d8d545c0ec63d0c1510371e2f5494c4f
    https://github.com/scummvm/scummvm/commit/9d937c98d8d545c0ec63d0c1510371e2f5494c4f
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-08-01T22:08:54+10:00

Commit Message:
MADS: NEBULAR: Fix showing interface background animations

Changed paths:
    engines/mads/core/inter.cpp
    engines/mads/core/kernel.cpp
    engines/mads/core/matte.cpp


diff --git a/engines/mads/core/inter.cpp b/engines/mads/core/inter.cpp
index e2ed29029d0..0c2ebbdfaae 100644
--- a/engines/mads/core/inter.cpp
+++ b/engines/mads/core/inter.cpp
@@ -1802,7 +1802,8 @@ static void inter_background_animation() {
 	int image_scan;
 	int myprob;
 
-	if (inter_anim == NULL) goto done;
+	if (inter_anim == NULL)
+		goto done;
 
 	inter_no_segments_active = !inter_some_segments_active;
 	inter_some_segments_active = false;
diff --git a/engines/mads/core/kernel.cpp b/engines/mads/core/kernel.cpp
index 39d67d72360..9828411d939 100644
--- a/engines/mads/core/kernel.cpp
+++ b/engines/mads/core/kernel.cpp
@@ -481,7 +481,6 @@ void kernel_room_shutdown() {
 	if (inter_anim) {
 		anim_unload((AnimPtr)inter_anim);
 		buffer_free(&scr_inter_orig);
-		mem_free(inter_anim);
 		inter_anim = nullptr;
 	} else if (scr_inter_orig.data) {
 		buffer_free(&scr_inter_orig);
@@ -618,7 +617,7 @@ int kernel_room_startup(int newRoom, int initial_variant, const char *interface,
 
 		pal_activate_shadow(&kernel_shadow_main);
 
-		if (!inter_anim->font) {
+		if (g_engine->getGameID() == GType_Phantom && !inter_anim->font) {
 			mem_free(inter_anim);
 			inter_anim = nullptr;
 		}
diff --git a/engines/mads/core/matte.cpp b/engines/mads/core/matte.cpp
index 6fb16e1d84b..a7c62a03c4c 100644
--- a/engines/mads/core/matte.cpp
+++ b/engines/mads/core/matte.cpp
@@ -1123,7 +1123,7 @@ void matte_inter_frame(int update_live, int clear_chaff) {
 					x = image->x - (series->index[which - 1].xs >> 1);
 					y = image->y - (series->index[which - 1].ys - 1);
 					sprite_draw_interface(series,
-						which | mirror,
+						static_cast<int16>(which | mirror),
 						&scr_inter,
 						x, y);
 				}




More information about the Scummvm-git-logs mailing list