aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:27:04 +0000
committerEugene Sandulenko2010-06-15 10:27:04 +0000
commit1c1fb7c9acb77d552e51d7f41d91fadb35c63ee1 (patch)
tree70f8eed11a1d928d8b8dfb322fb0f8ea483abbc2 /engines
parent4046cd84571694c66f19b9fe0215a284a7d14357 (diff)
downloadscummvm-rg350-1c1fb7c9acb77d552e51d7f41d91fadb35c63ee1.tar.gz
scummvm-rg350-1c1fb7c9acb77d552e51d7f41d91fadb35c63ee1.tar.bz2
scummvm-rg350-1c1fb7c9acb77d552e51d7f41d91fadb35c63ee1.zip
AGI: add optional parameter to 'room' debug console command.
svn-id: r49730
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/console.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agi/console.cpp b/engines/agi/console.cpp
index c7396f47b2..e881b092e3 100644
--- a/engines/agi/console.cpp
+++ b/engines/agi/console.cpp
@@ -250,6 +250,10 @@ bool Console::Cmd_Cont(int argc, const char **argv) {
}
bool Console::Cmd_Room(int argc, const char **argv) {
+ if (argc == 2) {
+ _vm->newRoom(strtoul(argv[1], NULL, 0));
+ }
+
DebugPrintf("Current room: %d\n", _vm->getvar(0));
return true;