aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-10 14:44:54 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commita5c0a324462b9f149eea3ef78589999d193de71e (patch)
tree4f92b0946735a68508f549c0cddf1127a1000981 /engines/dm/dm.cpp
parent0eea48a59b83861f3b488ab7d5beae71c620bccc (diff)
downloadscummvm-rg350-a5c0a324462b9f149eea3ef78589999d193de71e.tar.gz
scummvm-rg350-a5c0a324462b9f149eea3ef78589999d193de71e.tar.bz2
scummvm-rg350-a5c0a324462b9f149eea3ef78589999d193de71e.zip
DM: Add debug command .pos
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 8cd5771302..f4ab7f4fbc 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -76,6 +76,13 @@ void warning(bool repeat, const char* s, ...) {
}
}
+const char* debugGetDirectionName(Direction dir) {
+ static const char* directionNames[] = {"North", "East", "South", "West"};
+ if (dir < 0 || dir > 3)
+ return "Invalid direction";
+ return directionNames[dir];
+}
+
void turnDirRight(Direction &dir) {
dir = (Direction)((dir + 1) & 3);
}
@@ -367,7 +374,7 @@ void DMEngine::f2_gameloop() {
while (true) {
if (_engineShouldQuit)
return;
-
+
// DEBUG CODE
for (int16 i = 0; i < _championMan->_g305_partyChampionCount; ++i) {
Champion &champ = _championMan->_gK71_champions[i];
@@ -380,7 +387,7 @@ void DMEngine::f2_gameloop() {
}
for (;;) {
-
+
if (_g327_newPartyMapIndex != kM1_mapIndexNone) {
f3_processNewPartyMap(_g327_newPartyMapIndex);