[Scummvm-cvs-logs] CVS: scummvm/simon debugger.cpp,1.2,1.3
Travis Howell
kirben at users.sourceforge.net
Tue Jan 27 09:27:08 CET 2004
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32338/simon
Modified Files:
debugger.cpp
Log Message:
Ooops
Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/debugger.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- debugger.cpp 27 Jan 2004 17:13:43 -0000 1.2
+++ debugger.cpp 27 Jan 2004 17:18:06 -0000 1.3
@@ -75,10 +75,11 @@
}
bool Debugger::Cmd_PlayMusic(int argc, const char **argv) {
- uint music = atoi(argv[1]);
- if (_vm->_game & GF_SIMON2) {
- DebugPrintf("No support for Simon the Sorcerer 2\n");
- } else if (music > 0 && music < 35) {
+ if (argc > 1) {
+ uint music = atoi(argv[1]);
+ if (_vm->_game & GF_SIMON2)
+ DebugPrintf("No support for Simon the Sorcerer 2\n");
+ else if (music < 35)
_vm->loadMusic(music);
} else
DebugPrintf("Syntax: music <musicnum>\n");
More information about the Scummvm-git-logs
mailing list