aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2013-08-27 11:10:24 +0200
committeruruk2013-08-27 11:10:24 +0200
commitf0dbe10cb2c4b14b7a441bdde3ee0a9273309ef8 (patch)
treef5b52c94f769f511a800e007d3abbe5887ed4eba /engines
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')
-rw-r--r--engines/avalanche/acci2.cpp34
-rw-r--r--engines/avalanche/avalot.cpp15
2 files changed, 29 insertions, 20 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);
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index de37f504fa..4306bb2aed 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -193,7 +193,10 @@ void Avalot::setup() {
int16 loadSlot = Common::ConfigManager::instance().getInt("save_slot");
- if (loadSlot >= 0) {
+ if (loadSlot >= 0) {
+ _vm->_gyro->thinks = 2; // You always have money.
+ _vm->_lucerna->thinkabout(_vm->_gyro->money, _vm->_gyro->a_thing);
+
_vm->loadGame(loadSlot);
} else {
_vm->_gyro->isLoaded = false; // Set to true in _vm->loadGame().
@@ -230,13 +233,13 @@ void Avalot::run(Common::String arg) {
// ONLY FOR TESTING!!!
- for (byte i = 0; i < _vm->_gyro->lineNum; i++)
- _vm->_graphics->_surface.drawLine(_vm->_gyro->lines[i].x1, _vm->_gyro->lines[i].y1, _vm->_gyro->lines[i].x2, _vm->_gyro->lines[i].y2, _vm->_gyro->lines[i].col);
+ /* for (byte i = 0; i < _vm->_gyro->lineNum; i++)
+ _vm->_graphics->_surface.drawLine(_vm->_gyro->lines[i].x1, _vm->_gyro->lines[i].y1, _vm->_gyro->lines[i].x2, _vm->_gyro->lines[i].y2, _vm->_gyro->lines[i].col);
for (byte i = 0; i < _vm->_gyro->numfields; i++) {
- if (_vm->_gyro->fields[i].x1 < 640)
- _vm->_graphics->_surface.frameRect(Common::Rect(_vm->_gyro->fields[i].x1, _vm->_gyro->fields[i].y1, _vm->_gyro->fields[i].x2, _vm->_gyro->fields[i].y2), lightmagenta);
- }
+ if (_vm->_gyro->fields[i].x1 < 640)
+ _vm->_graphics->_surface.frameRect(Common::Rect(_vm->_gyro->fields[i].x1, _vm->_gyro->fields[i].y1, _vm->_gyro->fields[i].x2, _vm->_gyro->fields[i].y2), lightmagenta);
+ }*/
// ONYL FOR TESTING!!!