aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dungeonman.cpp
diff options
context:
space:
mode:
authorStrangerke2016-09-20 23:14:30 +0200
committerStrangerke2016-09-20 23:14:30 +0200
commit2458fd090cd9d937e0d3bc8c042b6ebad1dab6c0 (patch)
tree2f825d1b0d40ec882da5e14f9fbcf485ebe26f2d /engines/dm/dungeonman.cpp
parent8ffa6483f45960c2c0d919aa7c11f06a9c79f3b0 (diff)
downloadscummvm-rg350-2458fd090cd9d937e0d3bc8c042b6ebad1dab6c0.tar.gz
scummvm-rg350-2458fd090cd9d937e0d3bc8c042b6ebad1dab6c0.tar.bz2
scummvm-rg350-2458fd090cd9d937e0d3bc8c042b6ebad1dab6c0.zip
DM: Initialize some variables
Diffstat (limited to 'engines/dm/dungeonman.cpp')
-rw-r--r--engines/dm/dungeonman.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp
index 796413a48b..9ee86eda90 100644
--- a/engines/dm/dungeonman.cpp
+++ b/engines/dm/dungeonman.cpp
@@ -443,10 +443,20 @@ DungeonMan::DungeonMan(DMEngine *dmEngine) : _vm(dmEngine) {
_isFacingViAltar = false;
_isFacingFountain = false;
_squareAheadElement = (ElementType)0;
+
+ _dungeonFileHeader._ornamentRandomSeed = 0;
+ _dungeonFileHeader._rawMapDataSize = 0;
+ _dungeonFileHeader._mapCount = 0;
+ _dungeonFileHeader._textDataWordCount = 0;
+ _dungeonFileHeader._partyStartLocation = 0;
+ _dungeonFileHeader._squareFirstThingCount = 0;
+
for (uint16 i = 0; i < 5; ++i)
_pileTopObject[i] = Thing(0);
for (uint16 i = 0; i < 2; ++i)
_currMapDoorInfo[i].resetToZero();
+ for (uint16 i = 0; i < 16; i++)
+ _dungeonFileHeader._thingCounts[i] = 0;
setupConstants();
}