[Scummvm-git-logs] scummvm master -> d9fea35b1269f0df5fe83eadfa211c3b549284a4

dreammaster noreply at scummvm.org
Thu Oct 8 05:23:41 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:
d9fea35b12 MADS: FOREST: Fix for room 308 snake anim bug #317293


Commit: d9fea35b1269f0df5fe83eadfa211c3b549284a4
    https://github.com/scummvm/scummvm/commit/d9fea35b1269f0df5fe83eadfa211c3b549284a4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-10-08T16:23:33+11:00

Commit Message:
MADS: FOREST: Fix for room 308 snake anim bug #317293

Thanks to Tropp

Changed paths:
    engines/mads/forest/rooms/room308.cpp


diff --git a/engines/mads/forest/rooms/room308.cpp b/engines/mads/forest/rooms/room308.cpp
index eed8fbfeb38..6919a68c863 100644
--- a/engines/mads/forest/rooms/room308.cpp
+++ b/engines/mads/forest/rooms/room308.cpp
@@ -891,19 +891,32 @@ static void room_308_anim24() {
 	aainfo[22]._frame = cur;
 
 	int16 result = -1;
-	if (cur == 1 || cur == 27) {
+	switch (cur) {
+	case 1:
+	case 28:
 		digi_initial_volume(60);
 		digi_play_build(308, '_', 3, 1);
 		scratch._b4 = -1;
-	} else if (cur == 19) {
+		break;
+	case 20:
 		digi_play_build(308, 't', 7, 1);
 		scratch._b4 = 5;
-	} else if (cur >= 20 && cur <= 25) {
+		break;
+	case 21:
+	case 22:
+	case 23:
+	case 24:
+	case 25:
+	case 26:
 		if (aainfo[22]._val3 == 3)
 			result = imath_random(20, 25);
-	} else if (cur == 28) {
+		break;
+	case 29:
 		global[g009] = 0;
 		global_midi_play(5);
+		break;
+	default:
+		break;
 	}
 
 	if (result >= 0) {




More information about the Scummvm-git-logs mailing list