LAB: The parameter of doMap() isn't needed

This commit is contained in:
Filippos Karapetis 2016-01-14 00:28:02 +02:00
parent c809a65b93
commit 49a45a21ce
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -282,7 +282,7 @@ private:
/**
* Does the map processing.
*/
void doMap(uint16 curRoom);
void doMap();
/**
* Does what's necessary for the monitor.

View File

@ -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();