[Scummvm-git-logs] scummvm master -> 9c25d11982d9b0c52cad8a10a1cbaaf12ce758ff
bluegr
noreply at scummvm.org
Sat Dec 11 11:41:39 UTC 2021
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8383799e61 GROOVIE: Fix infinite loop in the Othello mini-game with easier AI
9c25d11982 GROOVIE: Add "var" to the debugger, an alias for the "mem" command
Commit: 8383799e619959f2203fa09f26e50823e1e44eed
https://github.com/scummvm/scummvm/commit/8383799e619959f2203fa09f26e50823e1e44eed
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2021-12-11T13:41:16+02:00
Commit Message:
GROOVIE: Fix infinite loop in the Othello mini-game with easier AI
Changed paths:
engines/groovie/logic/othello.cpp
diff --git a/engines/groovie/logic/othello.cpp b/engines/groovie/logic/othello.cpp
index fd21a9c5ca..3b2f2d8de5 100644
--- a/engines/groovie/logic/othello.cpp
+++ b/engines/groovie/logic/othello.cpp
@@ -372,7 +372,7 @@ byte OthelloGame::aiDoBestMove(Freeboard *pBoard) {
_isAiTurn = !_isAiTurn; // flip before recursing
int depth = _depths[_counter];
if (_easierAi)
- depth = 0;
+ depth = 1;
int score = aiRecurse(&possibleMoves[move], depth, parentScore, 100);
if (bestScore < score) {
parentScore = score;
Commit: 9c25d11982d9b0c52cad8a10a1cbaaf12ce758ff
https://github.com/scummvm/scummvm/commit/9c25d11982d9b0c52cad8a10a1cbaaf12ce758ff
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2021-12-11T13:41:17+02:00
Commit Message:
GROOVIE: Add "var" to the debugger, an alias for the "mem" command
Changed paths:
engines/groovie/debug.cpp
diff --git a/engines/groovie/debug.cpp b/engines/groovie/debug.cpp
index 905ce1d8ac..2e91b5236f 100644
--- a/engines/groovie/debug.cpp
+++ b/engines/groovie/debug.cpp
@@ -43,6 +43,7 @@ Debugger::Debugger(GroovieEngine *vm) :
registerCmd("fg", WRAP_METHOD(Debugger, cmd_fg));
registerCmd("bg", WRAP_METHOD(Debugger, cmd_bg));
registerCmd("mem", WRAP_METHOD(Debugger, cmd_mem));
+ registerCmd("var", WRAP_METHOD(Debugger, cmd_mem)); // alias
registerCmd("load", WRAP_METHOD(Debugger, cmd_loadgame));
registerCmd("save", WRAP_METHOD(Debugger, cmd_savegame));
registerCmd("playref", WRAP_METHOD(Debugger, cmd_playref));
@@ -98,9 +99,9 @@ bool Debugger::cmd_mem(int argc, const char **argv) {
// Get
val = _script->_variables[pos];
}
- debugPrintf("mem[0x%04X] = 0x%02X\n", pos, val);
+ debugPrintf("%s[0x%04X] = 0x%02X\n", argv[0], pos, val);
} else {
- debugPrintf("Syntax: mem <addr> [<val>]\n");
+ debugPrintf("Syntax: %s <addr> [<val>]\n", argv[0]);
}
return true;
}
More information about the Scummvm-git-logs
mailing list