diff options
author | Sven Hesse | 2007-08-13 14:04:50 +0000 |
---|---|---|
committer | Sven Hesse | 2007-08-13 14:04:50 +0000 |
commit | 5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7 (patch) | |
tree | c0c0bf36cd4175da5ce3bc3058ce0e21a97491f5 /engines/gob/map_v1.cpp | |
parent | 32164654a6a4c9ddbb70c65371c1e762056511e6 (diff) | |
download | scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.tar.gz scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.tar.bz2 scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.zip |
Woodruff is now controllable
svn-id: r28591
Diffstat (limited to 'engines/gob/map_v1.cpp')
-rw-r--r-- | engines/gob/map_v1.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/gob/map_v1.cpp b/engines/gob/map_v1.cpp index c5a2622e44..7134527592 100644 --- a/engines/gob/map_v1.cpp +++ b/engines/gob/map_v1.cpp @@ -42,6 +42,9 @@ Map_v1::~Map_v1() { } void Map_v1::init(void) { + if (_passMap || _itemsMap) + return; + _mapWidth = 26; _mapHeight = 28; @@ -84,6 +87,8 @@ void Map_v1::loadMapObjects(const char *avjFile) { } Common::MemoryReadStream mapData(dataBuf, 4294967295U); + init(); + if (_loadFromAvo) { mapData.read(_passMap, _mapHeight * _mapWidth); |