aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-27 00:51:43 +0200
committerEugene Sandulenko2019-09-03 17:17:35 +0200
commit373002d3039192b56b46b1ad09035f3cbfa13202 (patch)
treed78a62254ec1b2cdf178f2a18231a0dbf30e4ce2
parentabbe16bf011739fae32d0fd9f23d551d20f472c7 (diff)
downloadscummvm-rg350-373002d3039192b56b46b1ad09035f3cbfa13202.tar.gz
scummvm-rg350-373002d3039192b56b46b1ad09035f3cbfa13202.tar.bz2
scummvm-rg350-373002d3039192b56b46b1ad09035f3cbfa13202.zip
HDB: Added debug output for map loading
-rw-r--r--engines/hdb/hdb.cpp2
-rw-r--r--engines/hdb/saveload.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 557c8bac75..b8aa0fdf4f 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -217,6 +217,8 @@ bool HDBGame::restartMap() {
if (!_currentMapname[0])
return false;
+ debug(0, "Starting map %s", _currentMapname);
+
_gfx->emptyGfxCaches();
_lua->callFunction("level_shutdown", 0);
diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp
index 618d9a9be4..acf1092577 100644
--- a/engines/hdb/saveload.cpp
+++ b/engines/hdb/saveload.cpp
@@ -217,6 +217,9 @@ void HDBGame::save(Common::OutSaveFile *out) {
void HDBGame::loadSaveFile(Common::InSaveFile *in) {
in->read(_currentMapname, 64);
+
+ debug(0, "Loading map %s", _currentMapname);
+
in->read(_lastMapname, 64);
in->read(_currentLuaName, 64);
_actionMode = in->readSint32LE();