mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
AVALANCHE: More function deduplication, remove a magic value
This commit is contained in:
parent
dc3471bc09
commit
75cbbda822
@ -1025,7 +1025,7 @@ void Avalot::enterRoom(Room roomId, byte ped) {
|
||||
if (ped == 2) {
|
||||
_vm->_background->draw(-1, -1, 2);
|
||||
_vm->_graphics->refreshBackground();
|
||||
_vm->_sequence->startNottsSeq();
|
||||
_vm->_sequence->startDuckSeq();
|
||||
}
|
||||
break;
|
||||
|
||||
@ -1984,7 +1984,7 @@ void Avalot::openDoor(Room whither, byte ped, byte magicnum) {
|
||||
case 14:
|
||||
if (_avvysInTheCupboard) {
|
||||
_vm->_animation->hideInCupboard();
|
||||
_vm->_sequence->startLustiesSeq1();
|
||||
_vm->_sequence->startCupboardSeq();
|
||||
return;
|
||||
} else {
|
||||
_vm->_animation->appearPed(0, 5);
|
||||
|
@ -88,10 +88,11 @@ void Sequence::callSequencer() {
|
||||
case 0:
|
||||
return; // No more routines.
|
||||
break;
|
||||
case 177: // Flip room.
|
||||
case kNowFlip: // Flip room.
|
||||
_vm->_avalot->_userMovesAvvy = true;
|
||||
_vm->_avalot->flipRoom(_vm->_avalot->_flipToWhere, _vm->_avalot->_flipToPed);
|
||||
if (curSeq == 177)
|
||||
// CHECKME: Always true?
|
||||
if (curSeq == kNowFlip)
|
||||
shoveLeft();
|
||||
break;
|
||||
}
|
||||
@ -146,14 +147,6 @@ void Sequence::startDuckSeq() {
|
||||
startTimer();
|
||||
}
|
||||
|
||||
void Sequence::startNottsSeq() {
|
||||
init(3);
|
||||
add(2);
|
||||
add(1);
|
||||
add(4);
|
||||
startTimer();
|
||||
}
|
||||
|
||||
void Sequence::startLustiesSeq3(Room whither, byte ped) {
|
||||
init(4);
|
||||
add(5);
|
||||
@ -195,12 +188,6 @@ void Sequence::startCupboardSeq() {
|
||||
startTimer();
|
||||
}
|
||||
|
||||
void Sequence::startLustiesSeq1() {
|
||||
init(8);
|
||||
add(7);
|
||||
startTimer();
|
||||
}
|
||||
|
||||
void Sequence::startLustiesSeq2(Room whither, byte ped) {
|
||||
init(8);
|
||||
add(9);
|
||||
|
@ -55,7 +55,6 @@ public:
|
||||
void startGeidaLuteSeq();
|
||||
void startWinSeq();
|
||||
void startNaughtyDukeSeq();
|
||||
void startLustiesSeq1();
|
||||
void startLustiesSeq2(Room whither, byte ped);
|
||||
void startLustiesSeq3(Room whither, byte ped);
|
||||
void startHallSeq(Room whither, byte ped);
|
||||
@ -63,7 +62,6 @@ public:
|
||||
void startOutsideSeq(Room whither, byte ped);
|
||||
void startDuckSeq();
|
||||
void startCardiffSeq2();
|
||||
void startNottsSeq();
|
||||
void startDummySeq(Room whither, byte ped);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user