[Scummvm-git-logs] scummvm master -> 7bc8b9c2445922edc902832e8be0022d5ce86fba

dreammaster noreply at scummvm.org
Mon Feb 12 04:44:44 UTC 2024


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

Summary:
7bc8b9c244 M4: Fix and cleanup for Drumz animation in test 5


Commit: 7bc8b9c2445922edc902832e8be0022d5ce86fba
    https://github.com/scummvm/scummvm/commit/7bc8b9c2445922edc902832e8be0022d5ce86fba
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-02-11T20:44:35-08:00

Commit Message:
M4: Fix and cleanup for Drumz animation in test 5

Changed paths:
    engines/m4/burger/rooms/section4/room407.cpp
    engines/m4/burger/rooms/section4/room407.h


diff --git a/engines/m4/burger/rooms/section4/room407.cpp b/engines/m4/burger/rooms/section4/room407.cpp
index dbd5950e4e6..1543033c2be 100644
--- a/engines/m4/burger/rooms/section4/room407.cpp
+++ b/engines/m4/burger/rooms/section4/room407.cpp
@@ -286,7 +286,7 @@ void Room407::daemon() {
 			if (!digi_play_state(2))
 				digi_play_loop("407_001", 2);
 
-			_drumzShould = getRandomState();
+			_drumzShould = getDrumzShould();
 			series_play_with_breaks(PLAY1, "407dz01", 0xa01, kCHANGE_DRUMZ_ANIMATION, 3);
 			break;
 
@@ -307,14 +307,14 @@ void Room407::daemon() {
 			break;
 
 		case 14:
-			_drumzShould = getRandomState();
+			_drumzShould = getDrumzShould();
 			kernel_trigger_dispatch_now(kCHANGE_DRUMZ_ANIMATION);
 			kernel_trigger_dispatch_now(10001);
 			break;
 
 		case 15:
 			digi_stop(2);
-			_drumzShould = getRandomState();
+			_drumzShould = getDrumzShould();
 			series_play_with_breaks(PLAY5, "407dz05", 0xa01, kCHANGE_DRUMZ_ANIMATION, 3);
 			break;
 
@@ -322,14 +322,14 @@ void Room407::daemon() {
 			digi_stop(2);
 			_dzS1 = series_load("407dz06");
 			_dzS2 = series_load("407dz06s");
-			_dz.show("407dz06", 0xa01, 18);
+			_dz.play("407dz06", 0xa01, 18, -1, 6, 0, 100, 0, 0, 2, 7);
 			kernel_trigger_dispatch_now(5);
 			break;
 
 		case 17:
 			_flag1 = false;
 			freeDz();
-			_drumzShould = getRandomState();
+			_drumzShould = getDrumzShould();
 			series_play_with_breaks(PLAY6, "407dz06", 0xa01, kCHANGE_DRUMZ_ANIMATION, 3);
 			break;
 
@@ -688,7 +688,7 @@ void Room407::conv88() {
 	}
 }
 
-int Room407::getRandomState() const {
+int Room407::getDrumzShould() const {
 	switch (imath_ranged_rand(1, 10)) {
 	case 1:
 		return 15;
diff --git a/engines/m4/burger/rooms/section4/room407.h b/engines/m4/burger/rooms/section4/room407.h
index 2512e4a4b34..36ce9993661 100644
--- a/engines/m4/burger/rooms/section4/room407.h
+++ b/engines/m4/burger/rooms/section4/room407.h
@@ -69,7 +69,7 @@ private:
 	void loadSeries();
 	void conv87();
 	void conv88();
-	int getRandomState() const;
+	int getDrumzShould() const;
 	void freeDz();
 	void playConvSound();
 




More information about the Scummvm-git-logs mailing list