From 5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Mon, 13 Aug 2007 14:04:50 +0000 Subject: Woodruff is now controllable svn-id: r28591 --- engines/gob/map_v1.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/gob/map_v1.cpp') 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); -- cgit v1.2.3