diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lab/engine.cpp | 2 | ||||
-rw-r--r-- | engines/lab/lab.h | 2 | ||||
-rw-r--r-- | engines/lab/map.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 5dffa64c97..ec80f9c634 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -279,7 +279,7 @@ bool LabEngine::doUse(uint16 curInv) { _anim->stopDiff(); _curFileName = " "; _closeDataPtr = nullptr; - doMap(_roomNum); + doMap(); _graphics->setPalette(initColors, 8); _graphics->drawMessage("", false); _graphics->drawPanel(); diff --git a/engines/lab/lab.h b/engines/lab/lab.h index 0e9cdd36b1..4aa4e66135 100644 --- a/engines/lab/lab.h +++ b/engines/lab/lab.h @@ -282,7 +282,7 @@ private: /** * Does the map processing. */ - void doMap(uint16 curRoom); + void doMap(); /** * Does what's necessary for the monitor. diff --git a/engines/lab/map.cpp b/engines/lab/map.cpp index 2b283aec4a..55e5f7832e 100644 --- a/engines/lab/map.cpp +++ b/engines/lab/map.cpp @@ -523,7 +523,7 @@ void LabEngine::processMap(uint16 curRoom) { } } -void LabEngine::doMap(uint16 curRoom) { +void LabEngine::doMap() { static uint16 amigaMapPalette[] = { 0x0BA8, 0x0C11, 0x0A74, 0x0076, 0x0A96, 0x0DCB, 0x0CCA, 0x0222, @@ -537,10 +537,10 @@ void LabEngine::doMap(uint16 curRoom) { loadMapData(); _graphics->blackAllScreen(); _event->attachButtonList(&_mapButtonList); - drawMap(curRoom, curRoom, _maps[curRoom]._pageNumber, true); + drawMap(_roomNum, _roomNum, _maps[_roomNum]._pageNumber, true); _event->mouseShow(); _graphics->screenUpdate(); - processMap(curRoom); + processMap(_roomNum); _event->attachButtonList(nullptr); _graphics->fade(false); _graphics->blackAllScreen(); |