diff options
author | Filippos Karapetis | 2011-12-08 00:41:10 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-08 00:41:10 +0200 |
commit | 1f4414fc54816b59ef636f6ee1922565cba3d249 (patch) | |
tree | cdac97b9ad7ecd758ed4be19a2a1dcdb78d10e86 /engines/dreamweb/people.cpp | |
parent | 61c2331af3c870c10f7e8c37b152e16915d1b32a (diff) | |
download | scummvm-rg350-1f4414fc54816b59ef636f6ee1922565cba3d249.tar.gz scummvm-rg350-1f4414fc54816b59ef636f6ee1922565cba3d249.tar.bz2 scummvm-rg350-1f4414fc54816b59ef636f6ee1922565cba3d249.zip |
DREAMWEB: 'monkandryan' ported to C++
Diffstat (limited to 'engines/dreamweb/people.cpp')
-rw-r--r-- | engines/dreamweb/people.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp index d53786c369..403f8f1912 100644 --- a/engines/dreamweb/people.cpp +++ b/engines/dreamweb/people.cpp @@ -48,7 +48,7 @@ static void (DreamGenContext::*reelCallbacks[57])() = { NULL, NULL, &DreamGenContext::introMonks1, NULL, &DreamGenContext::introMonks2, NULL, - &DreamGenContext::monkAndRyan, &DreamGenContext::endGameSeq, + NULL, &DreamGenContext::endGameSeq, NULL, NULL, NULL, NULL, NULL, NULL, @@ -80,7 +80,7 @@ static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = { &DreamGenContext::gates, &DreamGenContext::introMagic3, /*&DreamGenContext::intromonks1*/NULL, &DreamGenContext::candles, /*&DreamGenContext::intromonks2*/NULL, &DreamGenContext::handClap, - /*&DreamGenContext::monkAndRyan*/NULL, /*&DreamGenContext::endGameSeq*/NULL, + &DreamGenContext::monkAndRyan, /*&DreamGenContext::endGameSeq*/NULL, &DreamGenContext::priest, &DreamGenContext::madman, &DreamGenContext::madmansTelly, &DreamGenContext::alleyBarkSound, &DreamGenContext::foghornSound, &DreamGenContext::carParkDrip, @@ -649,4 +649,24 @@ void DreamGenContext::priestText(ReelRoutine &routine) { setupTimedUse(); } +void DreamGenContext::monkAndRyan(ReelRoutine &routine) { + if (checkSpeed(routine)) { + uint16 nextReelPointer = routine.reelPointer() + 1; + if (nextReelPointer == 83) { + data.byte(kIntrocount)++; + textForMonk(); + nextReelPointer = 77; + + if (data.byte(kIntrocount) == 57) { + data.byte(kGetback) = 1; + return; + } + } + + routine.setReelPointer(nextReelPointer); + } + + showGameReel(&routine); +} + } // End of namespace DreamGen |