[Scummvm-git-logs] scummvm master -> 72107ab4f741a6ca4b4347363c8e5a0b4d820b6c

dreammaster noreply at scummvm.org
Thu Jan 26 06:18:26 UTC 2023


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:
72107ab4f7 MM: MM1: Yet more RiscOS fixes


Commit: 72107ab4f741a6ca4b4347363c8e5a0b4d820b6c
    https://github.com/scummvm/scummvm/commit/72107ab4f741a6ca4b4347363c8e5a0b4d820b6c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-01-25T22:18:14-08:00

Commit Message:
MM: MM1: Yet more RiscOS fixes

Changed paths:
    engines/mm/mm1/maps/map23.cpp
    engines/mm/mm1/maps/map25.cpp


diff --git a/engines/mm/mm1/maps/map23.cpp b/engines/mm/mm1/maps/map23.cpp
index 54440ded870..1428b7266ab 100644
--- a/engines/mm/mm1/maps/map23.cpp
+++ b/engines/mm/mm1/maps/map23.cpp
@@ -198,7 +198,7 @@ void Map23::fountain() {
 		[]() {
 			for (uint i = 0; i < g_globals->_party.size(); ++i) {
 				Character &c = g_globals->_party[i];
-				int attrNum = getRandomNumber(8) - 1;
+				int attrNum = g_events->getRandomNumber(8) - 1;
 				c.getAttribute(attrNum)._current = 30;
 			}
 
diff --git a/engines/mm/mm1/maps/map25.cpp b/engines/mm/mm1/maps/map25.cpp
index 270cb768cbd..871744afc0b 100644
--- a/engines/mm/mm1/maps/map25.cpp
+++ b/engines/mm/mm1/maps/map25.cpp
@@ -74,7 +74,7 @@ void Map25::special() {
 					STRING["maps.map25.pirates"],
 					[]() {
 						Game::Encounter &enc = g_globals->_encounters;
-						int monsterCount = getRandomNumber(8) + 4;
+						int monsterCount = g_events->getRandomNumber(8) + 4;
 						enc.clearMonsters();
 						for (int i = 0; i < monsterCount; ++i)
 							enc.addMonster(12, 12);
@@ -174,7 +174,7 @@ void Map25::nativesAttack() {
 		STRING["maps.map25.natives"],
 		[]() {
 			Game::Encounter &enc = g_globals->_encounters;
-			int monsterCount = getRandomNumber(6) + 7;
+			int monsterCount = g_events->getRandomNumber(6) + 7;
 			enc.clearMonsters();
 			for (int i = 0; i < monsterCount; ++i)
 				enc.addMonster(9, 12);




More information about the Scummvm-git-logs mailing list