diff options
author | Strangerke | 2014-11-12 19:28:05 +0100 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:31:30 -0500 |
commit | 15da1cc639faf09984b1a228a25ad829b98cd331 (patch) | |
tree | c385dc58842e49163a2e40ed619f75560ee7391a | |
parent | c3660acf63e684bdb90efd4cb7fb1fedd3ed1ea0 (diff) | |
download | scummvm-rg350-15da1cc639faf09984b1a228a25ad829b98cd331.tar.gz scummvm-rg350-15da1cc639faf09984b1a228a25ad829b98cd331.tar.bz2 scummvm-rg350-15da1cc639faf09984b1a228a25ad829b98cd331.zip |
ACCESS: Fix some parameters in ANT
-rw-r--r-- | engines/access/amazon/amazon_scripts.cpp | 10 | ||||
-rw-r--r-- | engines/access/amazon/amazon_scripts.h | 10 |
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(); |