aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dm/dm.cpp7
-rw-r--r--engines/dm/dungeonman.cpp3
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index ee818495e4..34efcf3407 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -54,9 +54,12 @@ Common::Error DMEngine::run() {
_displayMan = new DisplayMan(this);
_dungeonMan = new DungeonMan(this);
+ _displayMan->setUpScreens(320, 200);
+
_dungeonMan->loadDungeonFile();
+ _dungeonMan->setCurrentMapAndPartyMap(0);
+
- _displayMan->setUpScreens(320, 200);
_displayMan->loadGraphics();
@@ -64,7 +67,7 @@ Common::Error DMEngine::run() {
_displayMan->loadPalette(gPalCredits);
- _dungeonMan->setCurrentMapAndPartyMap(0);
+
uint16 i = 0; //TODO: testing, please delete me
while (true) {
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index 46d4f62704..824a730602 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -352,9 +352,6 @@ void DungeonMan::loadDungeonFile() {
}
void DungeonMan::setCurrentMap(uint16 mapIndex) {
- if (_currMap.index == mapIndex)
- return;
-
_currMap.index = mapIndex;
_currMap.data = _dunData.mapData[mapIndex];
_currMap.map = _maps + mapIndex;