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

Strangerke noreply at scummvm.org
Tue Nov 26 21:57:31 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:
ad82943bbd M4: RIDDLE: room 703 - Some renaming


Commit: ad82943bbdb8a3d2fb24478178dadb9ed75be507
    https://github.com/scummvm/scummvm/commit/ad82943bbdb8a3d2fb24478178dadb9ed75be507
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-11-26T22:57:21+01:00

Commit Message:
M4: RIDDLE: room 703 - Some renaming

Changed paths:
    engines/m4/riddle/rooms/section7/room703.cpp
    engines/m4/riddle/rooms/section7/room703.h


diff --git a/engines/m4/riddle/rooms/section7/room703.cpp b/engines/m4/riddle/rooms/section7/room703.cpp
index 2cf26e1fe67..bca812a0fa1 100644
--- a/engines/m4/riddle/rooms/section7/room703.cpp
+++ b/engines/m4/riddle/rooms/section7/room703.cpp
@@ -144,7 +144,7 @@ void Room703::parser() {
 }
 
 void Room703::daemon() {
-	bool ecx = player_said("take");
+	const bool takeFl = player_said("take");
 
 	switch (_G(kernel).trigger) {
 	case 70:
@@ -252,7 +252,7 @@ void Room703::daemon() {
 		break;
 
 	case 83:
-		if (ecx && _G(player).click_y <= 374) {
+		if (takeFl && _G(player).click_y <= 374) {
 			switch (imath_ranged_rand(1, 3)) {
 			case 1:
 				digi_play("com077", 1, 255, 84, -1);
@@ -287,11 +287,11 @@ void Room703::daemon() {
 		break;
 
 	case 123:
-		if (_field5C == 124) {
-			switch (_field60) {
+		if (_field5C_mode == 124) {
+			switch (_field60_should) {
 			case 121:
 				_703Eye4aSeries = series_load("703EYE4a", -1, nullptr);
-				_field60 = 922;
+				_field60_should = 922;
 				_monkMach = TriggerMachineByHash(1, 1, 0, 0, 0, 0, 640, -53, 100, 256, false, callback, "monk");
 				sendWSMessage_10000(1, _monkMach, _703Eye4aSeries, 1, 5, 123, _703Eye4aSeries, 5, 5, 0);
 
@@ -317,11 +317,11 @@ void Room703::daemon() {
 			case 922:
 				switch (imath_ranged_rand(1, 2)) {
 				case 1:
-					_field60 = 923;
+					_field60_should = 923;
 					break;
 
 				case 2:
-					_field60 = 924;
+					_field60_should = 924;
 					break;
 
 				default:
@@ -333,7 +333,7 @@ void Room703::daemon() {
 				break;
 
 			case 923:
-				_field60 = 925;
+				_field60_should = 925;
 
 				sendWSMessage_10000(1, _monkMach, _703Eye4aSeries, 6, 11, -1, _703Eye4aSeries, 12, 15, 4);
 				sendWSMessage_1a0000(_monkMach, 9);
@@ -342,7 +342,7 @@ void Room703::daemon() {
 				break;
 
 			case 924:
-				_field60 = 925;
+				_field60_should = 925;
 
 				sendWSMessage_10000(1, _monkMach, _703Eye4aSeries, 6, 9, -1, _703Eye4aSeries, 12, 16, 4);
 				sendWSMessage_1a0000(_monkMach, 9);
@@ -351,12 +351,12 @@ void Room703::daemon() {
 				break;
 
 			case 925:
-				_field60 = 926;
+				_field60_should = 926;
 				sendWSMessage_10000(1, _monkMach, _703Eye4aSeries, 17, 20, 123, _703Eye4aSeries, 20, 20, 0);
 				break;
 
 			case 926:
-				_field60 = 122;
+				_field60_should = 122;
 				kernel_timing_trigger(10, 123, nullptr);
 
 				break;
@@ -370,8 +370,8 @@ void Room703::daemon() {
 		break;
 
 	case 127:
-		if (_field5C == 124) {
-			switch (_field60) {
+		if (_field5C_mode == 124) {
+			switch (_field60_should) {
 			case 121:
 			case 122:
 			case 124:
diff --git a/engines/m4/riddle/rooms/section7/room703.h b/engines/m4/riddle/rooms/section7/room703.h
index f1741a83adc..0b5cb29f562 100644
--- a/engines/m4/riddle/rooms/section7/room703.h
+++ b/engines/m4/riddle/rooms/section7/room703.h
@@ -46,8 +46,8 @@ private:
 	machine *_prayerWheelMach = nullptr;
 	machine *_ripStairsMach = nullptr;
 	
-	int32 _field5C = 0;
-	int32 _field60 = 0;
+	int32 _field5C_mode = 0;
+	int32 _field60_should = 0;
 
 	int32 _703Eye4aSeries = 0;
 	int32 _703RipGoesDownStairsSeries = 0;




More information about the Scummvm-git-logs mailing list