aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/acci2.cpp
diff options
context:
space:
mode:
authoruruk2013-08-27 11:10:24 +0200
committeruruk2013-08-27 11:10:24 +0200
commitf0dbe10cb2c4b14b7a441bdde3ee0a9273309ef8 (patch)
treef5b52c94f769f511a800e007d3abbe5887ed4eba /engines/avalanche/acci2.cpp
parent338dac4e10b4795096ee3cce9fd895e783a14efa (diff)
downloadscummvm-rg350-f0dbe10cb2c4b14b7a441bdde3ee0a9273309ef8.tar.gz
scummvm-rg350-f0dbe10cb2c4b14b7a441bdde3ee0a9273309ef8.tar.bz2
scummvm-rg350-f0dbe10cb2c4b14b7a441bdde3ee0a9273309ef8.zip
AVALANCHE: Repair exampers(), openBox() and do_that() in Acci. Repair loading from the Launcher.
Diffstat (limited to 'engines/avalanche/acci2.cpp')
-rw-r--r--engines/avalanche/acci2.cpp34
1 files changed, 20 insertions, 14 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp
index c1a1950148..87f89fa8ec 100644
--- a/engines/avalanche/acci2.cpp
+++ b/engines/avalanche/acci2.cpp
@@ -717,13 +717,17 @@ void Acci::exampers() {
person -= 149;
switch (person) { /* Special cases */
case 11:
- if (_vm->_gyro->dna.wonnim)
+ if (_vm->_gyro->dna.wonnim) {
_vm->_visa->dixi('Q', 8); // "I'm Not Playing!"
- return;
+ return;
+ }
+ break;
case 99:
- if (_vm->_gyro->dna.lustie_is_asleep)
+ if (_vm->_gyro->dna.lustie_is_asleep) {
_vm->_visa->dixi('Q', 65); // He's asleep. (65! Wow!)
- return;
+ return;
+ }
+ break;
}
// Otherwise...
_vm->_visa->dixi('p', person);
@@ -753,19 +757,21 @@ bool Acci::holding() {
void Acci::openBox(bool before) {
- _vm->_celer->show_one(5);
-
- _vm->_celer->pics_link();
- _vm->_trip->trippancy_link();
- _vm->_graphics->refreshScreen();
-
- _vm->_system->delayMillis(55);
+ if ((_vm->_gyro->dna.room == r__yours) && (thing == 54)) {
+ _vm->_celer->show_one(5);
- if (!before) {
- _vm->_celer->show_one(6);
_vm->_celer->pics_link();
_vm->_trip->trippancy_link();
_vm->_graphics->refreshScreen();
+
+ _vm->_system->delayMillis(55);
+
+ if (!before) {
+ _vm->_celer->show_one(6);
+ _vm->_celer->pics_link();
+ _vm->_trip->trippancy_link();
+ _vm->_graphics->refreshScreen();
+ }
}
}
@@ -1790,7 +1796,7 @@ void Acci::do_that() {
}
_vm->_celer->show_one(12);
- _vm->_scrolls->display("Wine, please." + _vm->_scrolls->kControlRegister + '1' + _vm->_scrolls->kControlSpeechBubble);
+ _vm->_scrolls->display(Common::String("Wine, please.") + _vm->_scrolls->kControlRegister + '1' + _vm->_scrolls->kControlSpeechBubble);
if (_vm->_gyro->dna.alcohol == 0)
_vm->_lucerna->points(3);
_vm->_celer->show_one(10);