From c781727a03c0a7db10cf61944b54066199dbe838 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 4 Sep 2013 12:42:27 +0200 Subject: AVALANCHE: Fix bug in giveToSpludwick, add doxygen comment --- engines/avalanche/acci2.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'engines') 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(); -- cgit v1.2.3