aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2013-09-04 12:42:27 +0200
committerStrangerke2013-09-04 12:42:27 +0200
commitc781727a03c0a7db10cf61944b54066199dbe838 (patch)
treeb205f79e2552a9047881cc7faaddec197b650eca /engines
parent53d9848f6625b390b3898c18cabf610439e2bba6 (diff)
downloadscummvm-rg350-c781727a03c0a7db10cf61944b54066199dbe838.tar.gz
scummvm-rg350-c781727a03c0a7db10cf61944b54066199dbe838.tar.bz2
scummvm-rg350-c781727a03c0a7db10cf61944b54066199dbe838.zip
AVALANCHE: Fix bug in giveToSpludwick, add doxygen comment
Diffstat (limited to 'engines')
-rw-r--r--engines/avalanche/acci2.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp
index d869fe46e3..9da26a80f4 100644
--- a/engines/avalanche/acci2.cpp
+++ b/engines/avalanche/acci2.cpp
@@ -1052,6 +1052,10 @@ void Acci::goToCauldron() {
_vm->_trip->tr[1].walkto(2);
}
+/**
+ * Check is it's possible to give something to Spludwick
+ * @remarks Originally called 'give2spludwick'
+ */
bool Acci::giveToSpludwick() {
if (_vm->_gyro->spludwick_order[_vm->_gyro->dna.given2spludwick] != _thing) {
notInOrder();
@@ -1062,10 +1066,10 @@ bool Acci::giveToSpludwick() {
case Gyro::onion:
_vm->_gyro->dna.obj[_vm->_gyro->onion - 1] = false;
if (_vm->_gyro->dna.rotten_onion)
- _vm->_visa->dixi('pos', 22);
+ _vm->_visa->dixi('q', 22);
else {
_vm->_gyro->dna.given2spludwick++;
- _vm->_visa->dixi('pos', 20);
+ _vm->_visa->dixi('q', 20);
goToCauldron();
_vm->_lucerna->points(3);
}
@@ -1075,13 +1079,13 @@ bool Acci::giveToSpludwick() {
_vm->_gyro->dna.obj[_vm->_gyro->ink - 1] = false;
_vm->_lucerna->objectlist();
_vm->_gyro->dna.given2spludwick++;
- _vm->_visa->dixi('pos', 24);
+ _vm->_visa->dixi('q', 24);
goToCauldron();
_vm->_lucerna->points(3);
break;
case Gyro::mushroom:
_vm->_gyro->dna.obj[_vm->_gyro->mushroom - 1] = false;
- _vm->_visa->dixi('pos', 25);
+ _vm->_visa->dixi('q', 25);
_vm->_lucerna->points(5);
_vm->_gyro->dna.given2spludwick++;
goToCauldron();