diff options
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index bd9de7a23c..de42f54271 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1036,13 +1036,6 @@ void DreamWebEngine::lockMon() { } } -void DreamWebEngine::clearAndLoad(uint8 *buf, uint8 c, - unsigned int size, unsigned int maxSize) { - assert(size <= maxSize); - memset(buf, c, maxSize); - readFromFile(buf, size); -} - void DreamWebEngine::startLoading(const Room &room) { _vars._combatCount = 0; _roomsSample = room.roomsSample; @@ -2117,10 +2110,17 @@ void DreamWebEngine::getRidOfAll() { _freeDesc.clear(); } +void DreamWebEngine::clearAndLoad(uint8 *buf, uint8 c, + unsigned int size, unsigned int maxSize) { + assert(size <= maxSize); + memset(buf, c, maxSize); + readFromFile(buf, size); +} + // if skipDat, skip clearing and loading Setdat and Freedat void DreamWebEngine::loadRoomData(const Room &room, bool skipDat) { - const uint16 kSetdatlen = 64*128; - const uint16 kFreedatlen = 16*80; + const uint16 kSetdatlen = 64*128; // == sizeof(_setDat) + const uint16 kFreedatlen = 16*80; // == sizeof(_freeDat) openFile(room.name); |