Skip to content

Commit

Permalink
ACCESS: Fix issue related to demo-only (and unused afawk) opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Dec 19, 2014
1 parent 3fca9d4 commit 864cab5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions engines/access/scripts.cpp
Expand Up @@ -266,7 +266,7 @@ void Scripts::cmdGoto() {
}

void Scripts::cmdAddScore() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdSetInventory();
return;
}
Expand Down Expand Up @@ -412,7 +412,7 @@ void Scripts::cmdDispInv() {
}

void Scripts::cmdSetAbout() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdSetTimer();
return;
}
Expand Down Expand Up @@ -459,7 +459,7 @@ void Scripts::cmdCheckTimer() {
}

void Scripts::cmdSetTravel() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdJumpGoto();
return;
}
Expand Down Expand Up @@ -515,7 +515,7 @@ void Scripts::cmdSetScroll() {
}

void Scripts::cmdSaveRect() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdVideoEnded();
return;
}
Expand Down Expand Up @@ -551,15 +551,15 @@ void Scripts::cmdRemoveLast() {
}

void Scripts::cmdDoTravel() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdSpecial();
return;
}
error("TODO: DEMO - cmdDoTravel");
}

void Scripts::cmdCheckAbout() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdSpecial();
return;
}
Expand Down Expand Up @@ -825,15 +825,15 @@ void Scripts::cmdPlayVideoSound() {
}

void Scripts::cmdPrintWatch() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdPushLocation();
return;
}
error("TODO: DEMO - cmdPrintWatch");
}

void Scripts::cmdDispAbout() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdPushLocation();
return;
}
Expand All @@ -845,15 +845,15 @@ void Scripts::cmdPushLocation() {
}

void Scripts::cmdCheckTravel() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdPushLocation();
return;
}
error("TODO: DEMO - cmdCheckTravel");
}

void Scripts::cmdBlock() {
if (_vm->isCD()) {
if (!_vm->isDemo()) {
cmdPushLocation();
return;
}
Expand Down

0 comments on commit 864cab5

Please sign in to comment.