aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/access/amazon/amazon_scripts.cpp10
-rw-r--r--engines/access/amazon/amazon_scripts.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/access/amazon/amazon_scripts.cpp b/engines/access/amazon/amazon_scripts.cpp
index d0b4d7ae2a..0642119b9e 100644
--- a/engines/access/amazon/amazon_scripts.cpp
+++ b/engines/access/amazon/amazon_scripts.cpp
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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) {
diff --git a/engines/access/amazon/amazon_scripts.h b/engines/access/amazon/amazon_scripts.h
index 7e42c0ca36..9d741158a8 100644
--- a/engines/access/amazon/amazon_scripts.h
+++ b/engines/access/amazon/amazon_scripts.h
@@ -75,11 +75,11 @@ protected:
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();