aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/debugger.cpp')
-rw-r--r--engines/titanic/debugger.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/titanic/debugger.cpp b/engines/titanic/debugger.cpp
index 87ce07d189..3bd2d0f134 100644
--- a/engines/titanic/debugger.cpp
+++ b/engines/titanic/debugger.cpp
@@ -99,8 +99,15 @@ CViewItem *Debugger::findView(CNodeItem *node, const char *name) {
}
void Debugger::listRooms() {
- CTreeItem *root = g_vm->_window->_gameManager->_project;
-
+ CGameManager &gm = *g_vm->_window->_gameManager;
+ CTreeItem *root = gm._project;
+ CViewItem *view = gm._gameState._gameLocation.getView();
+ CNodeItem *node = gm._gameState._gameLocation.getNode();
+ CRoomItem *room = gm._gameState._gameLocation.getRoom();
+ debugPrintf("Current location: %s, %s, %s\n", room->getName().c_str(),
+ node->getName().c_str(), view->getName().c_str());
+
+ debugPrintf("Available rooms:\n");
for (CTreeItem *treeItem = root; treeItem; treeItem = treeItem->scan(root)) {
CRoomItem *roomItem = dynamic_cast<CRoomItem *>(treeItem);
if (roomItem)