aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2018-12-19 00:15:18 +0100
committerEugene Sandulenko2018-12-19 00:15:18 +0100
commitb22524ef575d54c1f5569891f6b148e5f51e8681 (patch)
tree7549764d54d5c0299c68667bc4cb215aaf40b698
parent9545f8493bcb65ad17464123732281c0cabfb164 (diff)
downloadscummvm-rg350-b22524ef575d54c1f5569891f6b148e5f51e8681.tar.gz
scummvm-rg350-b22524ef575d54c1f5569891f6b148e5f51e8681.tar.bz2
scummvm-rg350-b22524ef575d54c1f5569891f6b148e5f51e8681.zip
BLADERUNNER: Print scene name in 'scene' debug command
-rw-r--r--engines/bladerunner/debugger.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp
index eb188b3ede..902c0d79f0 100644
--- a/engines/bladerunner/debugger.cpp
+++ b/engines/bladerunner/debugger.cpp
@@ -432,7 +432,15 @@ bool Debugger::cmdScene(int argc, const char **argv) {
return false;
}
- debugPrintf("chapter = %i\nset = %i\nscene = %i\n", _vm->_settings->getChapter(), _vm->_scene->getSetId(), _vm->_scene->getSceneId());
+ uint i;
+ for (i = 0; sceneList[i].chapter != 0; i++) {
+ if (sceneList[i].chapter == _vm->_settings->getChapter() && sceneList[i].set == _vm->_scene->getSetId()
+ && sceneList[i].scene == _vm->_scene->getSceneId())
+ break;
+ }
+
+ debugPrintf("chapter = %i\nset = %i\nscene = %i '%s'\n", _vm->_settings->getChapter(), _vm->_scene->getSetId(),
+ _vm->_scene->getSceneId(), sceneList[i].name);
return true;
}