aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2019-12-13 15:59:24 +0100
committerathrxx2019-12-16 21:45:16 +0100
commite6f018543d79ee780b18beb8622354982cdddf29 (patch)
treede39104a53bae93524ab8026bb806e2100b5c07f
parent781537665c65116600f6d0937eaf9fa05cf6a2d3 (diff)
downloadscummvm-rg350-e6f018543d79ee780b18beb8622354982cdddf29.tar.gz
scummvm-rg350-e6f018543d79ee780b18beb8622354982cdddf29.tar.bz2
scummvm-rg350-e6f018543d79ee780b18beb8622354982cdddf29.zip
KYRA: (EOB) - fix debugger glitches
Seems that some font glyphs that were used for the print_map command aren't present any more. I replaced them with more conventional glyphs.
-rw-r--r--engines/kyra/gui/debugger.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/engines/kyra/gui/debugger.cpp b/engines/kyra/gui/debugger.cpp
index 2003c2fbde..75cc6733bf 100644
--- a/engines/kyra/gui/debugger.cpp
+++ b/engines/kyra/gui/debugger.cpp
@@ -630,7 +630,7 @@ bool Debugger_EoB::cmdPrintMap(int, const char **) {
const uint8 stairsUp = 23;
const uint8 stairsDown = 24;
const uint8 types[] = { _vm->_teleporterWallId, illusion1, illusion2, stairsUp, stairsDown, hole, plate1, plate2 };
- const uint8 signs[] = { 1, 15, 15, 'U', 'D', 164, 'O', 'O' };
+ const uint8 signs[] = { 'T', 'i', 'i', 'U', 'D', 215, 'O', 'O', 'k' };
for (int i = 0; i < 1024; ++i) {
if (!(i % 0x20))
@@ -646,10 +646,20 @@ bool Debugger_EoB::cmdPrintMap(int, const char **) {
else if (f & 8)
c = 216;
else if (f & 1)
- c = 2;
+ c = 35;
+
+ bool key = false;
+ for (int t = bl->drawObjects; t; ) {
+ EoBItem *itm = &_vm->_items[t];
+ if (itm->type == 38)
+ key = true;
+ t = (itm->next != bl->drawObjects) ? itm->next : 0;
+ }
if (_vm->_currentBlock == i) {
c = 'X';
+ } else if (key) {
+ c = signs[8];
} else {
for (int ii = 0; ii < ARRAYSIZE(types); ++ii) {
if (bl->walls[0] == types[ii] || bl->walls[1] == types[ii] || bl->walls[2] == types[ii] || bl->walls[3] == types[ii]) {
@@ -661,7 +671,7 @@ bool Debugger_EoB::cmdPrintMap(int, const char **) {
debugPrintf("%c", c);
}
- debugPrintf("\n\nParty Position: %c Door: %c Stairs Up/Down: %c/%c Plate: %c Hole: %c\nSwitch: %c Clickable Object: %c Illusion Wall: %c Teleporter: %c\n\n", 'X', 216, 'U', 'D', 'O', 164, '/', 176, 15, 1);
+ debugPrintf("\n\nParty Position: %c Door: %c Stairs Up/Down: %c/%c Plate: %c Hole: %c\nSwitch: %c Clickable Object: %c Illusion Wall: %c Teleporter: %c Key: %c\n\n", 'X', 216, signs[3], signs[4], signs[6], signs[5], '/', 176, signs[1], signs[0], signs[8]);
return true;
}