diff options
author | uruk | 2013-09-15 20:12:30 +0200 |
---|---|---|
committer | uruk | 2013-09-15 20:12:30 +0200 |
commit | c877ddf4113cbfb4304ba53685713ad207b80069 (patch) | |
tree | 0fa4d02296eb9ab3a2888c386388e4bc70d05733 | |
parent | 45dc123b8417ce85edab4de8b7e1050e51bc8661 (diff) | |
download | scummvm-rg350-c877ddf4113cbfb4304ba53685713ad207b80069.tar.gz scummvm-rg350-c877ddf4113cbfb4304ba53685713ad207b80069.tar.bz2 scummvm-rg350-c877ddf4113cbfb4304ba53685713ad207b80069.zip |
AVALANCHE: Rework Acci:exampers().
-rw-r--r-- | engines/avalanche/acci.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp index 5436090dfb..dc794359b3 100644 --- a/engines/avalanche/acci.cpp +++ b/engines/avalanche/acci.cpp @@ -835,24 +835,19 @@ void Acci::exampers() { if (isPersonHere()) { if (_thing != _vm->_gyro->_thinks) _vm->_lucerna->thinkAbout(_person, Gyro::kPerson); + byte newPerson = _person - 149; - switch (_person) { // Special cases - case Gyro::kPeopleDogfood: - if (_vm->_gyro->_wonNim) - _vm->_scrolls->displayScrollChain('Q', 8); // "I'm Not Playing!" - break; - case Gyro::kPeopleDuLustie: - if (_vm->_gyro->_lustieIsAsleep) - _vm->_scrolls->displayScrollChain('Q', 65); // He's asleep. (65! Wow!) - break; - case Gyro::kPeopleAyles: - _vm->_scrolls->displayScrollChain('p', newPerson); - if (!_vm->_gyro->_aylesIsAwake) - _vm->_scrolls->displayScrollChain('Q', 13); - break; - default: + + if ((_person == Gyro::kPeopleDogfood) && _vm->_gyro->_wonNim) + _vm->_scrolls->displayScrollChain('Q', 8); // "I'm Not Playing!" + else if ((_person == Gyro::kPeopleDuLustie) && _vm->_gyro->_lustieIsAsleep) + _vm->_scrolls->displayScrollChain('Q', 65); // He's asleep. (65! Wow!) + else _vm->_scrolls->displayScrollChain('p', newPerson); - } + + if ((_person == Gyro::kPeopleAyles) && !_vm->_gyro->_aylesIsAwake) + _vm->_scrolls->displayScrollChain('Q', 13); + _person = newPerson; } } |