aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2013-04-23 22:25:14 +0200
committerathrxx2013-04-23 22:26:23 +0200
commit2e231150eba5e57f1f542f6a3938c9256995be70 (patch)
tree7ec49abd5a26eec3bff6a41aabc93be7c99d1e19 /engines
parentf4a566afb157d0579df4652bd7a59a7812547667 (diff)
downloadscummvm-rg350-2e231150eba5e57f1f542f6a3938c9256995be70.tar.gz
scummvm-rg350-2e231150eba5e57f1f542f6a3938c9256995be70.tar.bz2
scummvm-rg350-2e231150eba5e57f1f542f6a3938c9256995be70.zip
KYRA: (EOB) - minor changes to debugger
- display some more info in show_position - remove unused variable
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/debugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/kyra/debugger.cpp b/engines/kyra/debugger.cpp
index 702707e649..84f956f28c 100644
--- a/engines/kyra/debugger.cpp
+++ b/engines/kyra/debugger.cpp
@@ -578,7 +578,7 @@ bool Debugger_EoB::cmd_listMonsters(int, const char **) {
}
bool Debugger_EoB::cmd_showPosition(int, const char **) {
- DebugPrintf("\nCurrent level: %d\nCurrent Sub Level: %d\nCurrent block: %d\nCurrent direction: %d\n\n", _vm->_currentLevel, _vm->_currentSub, _vm->_currentBlock, _vm->_currentDirection);
+ DebugPrintf("\nCurrent level: %d\nCurrent Sub Level: %d\nCurrent block: %d (0x%.04x)\nNext block: %d (0x%.04x)\nCurrent direction: %d\n\n", _vm->_currentLevel, _vm->_currentSub, _vm->_currentBlock, _vm->_currentBlock, _vm->calcNewBlockPosition(_vm->_currentBlock, _vm->_currentDirection), _vm->calcNewBlockPosition(_vm->_currentBlock, _vm->_currentDirection), _vm->_currentDirection);
return true;
}
@@ -639,7 +639,6 @@ bool Debugger_EoB::cmd_closeDoor(int, const char **) {
uint16 block = _vm->calcNewBlockPosition(_vm->_currentBlock, _vm->_currentDirection);
int c = (_vm->_wllWallFlags[_vm->_levelBlockProperties[block].walls[0]] & 8) ? 0 : 1;
int v = _vm->_levelBlockProperties[block].walls[c];
- int flg = (_vm->_flags.gameID == GI_EOB1) ? 1 : 0x10;
if ((_vm->_flags.gameID == GI_EOB1 && !(_vm->_wllWallFlags[v] & 1)) || (_vm->_flags.gameID == GI_EOB2 && (_vm->_wllWallFlags[v] & 0x20))) {
DebugPrintf("Couldn't close any door. Make sure you're facing the door you wish to open and standing right in front of it.\n\n");
} else {