Skip to content

Commit

Permalink
ACCESS: Fix some parameters in ANT
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and dreammaster committed Dec 13, 2014
1 parent c3660ac commit 15da1cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions engines/access/amazon/amazon_scripts.cpp
Expand Up @@ -768,7 +768,7 @@ void AmazonScripts::setInactive() {
mWhile(_game->_rawInactiveY);
}

void AmazonScripts::plotTorchSpear(int indx, const int *buf) {
void AmazonScripts::plotTorchSpear(int indx, const int *&buf) {
int idx = indx;

ImageEntry ie;
Expand All @@ -780,7 +780,7 @@ void AmazonScripts::plotTorchSpear(int indx, const int *buf) {
_vm->_images.addToList(ie);
}

void AmazonScripts::plotPit(int indx, const int *buf) {
void AmazonScripts::plotPit(int indx, const int *&buf) {
int idx = indx;
ImageEntry ie;
ie._flags = 8;
Expand All @@ -807,7 +807,7 @@ void AmazonScripts::plotPit(int indx, const int *buf) {
}
}

int AmazonScripts::antHandleRight(int indx, const int *buf) {
int AmazonScripts::antHandleRight(int indx, const int *&buf) {
int retval = indx;
if (_game->_pitDirection == NONE) {
_game->_pitDirection = UP;
Expand All @@ -828,7 +828,7 @@ int AmazonScripts::antHandleRight(int indx, const int *buf) {
return retval;
}

int AmazonScripts::antHandleLeft(int indx, const int *buf) {
int AmazonScripts::antHandleLeft(int indx, const int *&buf) {
int retval = indx;
if (_game->_pitDirection == UP) {
_game->_pitDirection = NONE;
Expand All @@ -848,7 +848,7 @@ int AmazonScripts::antHandleLeft(int indx, const int *buf) {
return retval;
}

int AmazonScripts::antHandleStab(int indx, const int *buf) {
int AmazonScripts::antHandleStab(int indx, const int *&buf) {
int retval = indx;
if (_vm->_inventory->_inv[78]._value != 1) {
if (_game->_stabFl) {
Expand Down
10 changes: 5 additions & 5 deletions engines/access/amazon/amazon_scripts.h
Expand Up @@ -75,11 +75,11 @@ class AmazonScripts: public Scripts {
void guardSee();
void setGuardFrame();
void guard();
void plotTorchSpear(int indx, const int *buf);
void plotPit(int indx, const int *buf);
int antHandleRight(int indx, const int *buf);
int antHandleLeft(int indx, const int *buf);
int antHandleStab(int indx, const int *buf);
void plotTorchSpear(int indx, const int *&buf);
void plotPit(int indx, const int *&buf);
int antHandleRight(int indx, const int *&buf);
int antHandleLeft(int indx, const int *&buf);
int antHandleStab(int indx, const int *&buf);
void ANT();
void loadBackground(int param1, int param2);
void plotInactive();
Expand Down

0 comments on commit 15da1cc

Please sign in to comment.