Skip to content

Commit

Permalink
ACCESS: Add a second parameter to doEstablish()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 16, 2014
1 parent 0b0d16d commit 8648480
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions engines/access/access.cpp
Expand Up @@ -202,24 +202,24 @@ void AccessEngine::freeInactiveData() {
_inactive = nullptr;
}

void AccessEngine::establish(int v) {
void AccessEngine::establish(int v1, int v2) {
_establishMode = 0;
_establishGroup = 0;
doEstablish(v);
doEstablish(v1, v2);
}

void AccessEngine::establishCenter(int v) {
void AccessEngine::establishCenter(int v1, int v2) {
_establishMode = 1;
doEstablish(v);
doEstablish(v1, v2);
}

void AccessEngine::doEstablish(int v) {
void AccessEngine::doEstablish(int v1, int v2) {
_screen->forceFadeOut();
_screen->clearScreen();
_screen->setPanel(3);

if (v != -1) {
_files->loadScreen(95, v);
if (v1 != -1) {
_files->loadScreen(95, v1);
_buffer2.copyBuffer(_screen);
}

Expand Down
6 changes: 3 additions & 3 deletions engines/access/access.h
Expand Up @@ -84,7 +84,7 @@ class AccessEngine : public Engine {

void dummyLoop();

void doEstablish(int v);
void doEstablish(int v1, int v2);
protected:
const AccessGameDescription *_gameDescription;
Common::RandomSource _randomSource;
Expand Down Expand Up @@ -210,9 +210,9 @@ class AccessEngine : public Engine {
*/
void freeInactiveData();

void establish(int v);
void establish(int v1, int v2);

void establishCenter(int v);
void establishCenter(int v1, int v2);

void plotList();
void plotList1();
Expand Down
2 changes: 1 addition & 1 deletion engines/access/amazon/amazon_scripts.cpp
Expand Up @@ -34,7 +34,7 @@ AmazonScripts::AmazonScripts(AccessEngine *vm) : Scripts(vm) {
void AmazonScripts::executeSpecial(int commandIndex, int param1, int param2) {
switch (commandIndex) {
case 1:
warning("TODO ESTABLISH");
_vm->establish(param1, param2);
break;
case 2:
warning("TODO LOADBACKGROUND");
Expand Down
2 changes: 1 addition & 1 deletion engines/access/room.cpp
Expand Up @@ -163,7 +163,7 @@ void Room::loadRoomData(const byte *roomData) {
_vm->_establishFlag = true;
if (_vm->_establishTable[roomInfo._estIndex] != 1) {
_vm->_establishTable[roomInfo._estIndex] = 1;
_vm->establish(0);
_vm->establish(0, roomInfo._estIndex);
}
}

Expand Down

0 comments on commit 8648480

Please sign in to comment.