[Scummvm-cvs-logs] scummvm master -> ee0f3bcaadcaf08988ba789b9875270cd6472672
tramboi
bertrand_augereau at yahoo.fr
Sat Dec 3 19:06:42 CET 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ee0f3bcaad DREAMWEB: 'madmansTelly' (so british! :) ) ported to C++
Commit: ee0f3bcaadcaf08988ba789b9875270cd6472672
https://github.com/scummvm/scummvm/commit/ee0f3bcaadcaf08988ba789b9875270cd6472672
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-12-03T11:05:12-08:00
Commit Message:
DREAMWEB: 'madmansTelly' (so british! :) ) ported to C++
Changed paths:
devtools/tasmrecover/tasm-recover
engines/dreamweb/dreamgen.cpp
engines/dreamweb/dreamgen.h
engines/dreamweb/people.cpp
engines/dreamweb/stubs.h
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 66e1dcc..500a691 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -245,6 +245,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'look',
'loopchannel0',
'madman',
+ 'madmanstelly',
'madmantext',
'madmode',
'mainman',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 48d544e..7bd735f 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -1555,19 +1555,6 @@ void DreamGenContext::priest() {
es = pop();
}
-void DreamGenContext::madmansTelly() {
- STACK_CHECK;
- ax = es.word(bx+3);
- _inc(ax);
- _cmp(ax, 307);
- if (!flags.z())
- goto notendtelly;
- ax = 300;
-notendtelly:
- es.word(bx+3) = ax;
- showGameReel();
-}
-
void DreamGenContext::priestText() {
STACK_CHECK;
_cmp(es.word(bx+3), 2);
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index a3df8ce..662cb15 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -822,7 +822,6 @@ public:
void purgeAnItem();
void enableSoundInt();
void volumeAdjust();
- void madmansTelly();
void purgeALocation();
void notHeldError();
void getSetAd();
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp
index eab3add..6479d29 100644
--- a/engines/dreamweb/people.cpp
+++ b/engines/dreamweb/people.cpp
@@ -50,7 +50,7 @@ static void (DreamGenContext::*reelCallbacks[57])() = {
&DreamGenContext::introMonks2, &DreamGenContext::handClap,
&DreamGenContext::monkAndRyan, &DreamGenContext::endGameSeq,
&DreamGenContext::priest, NULL,
- &DreamGenContext::madmansTelly, &DreamGenContext::alleyBarkSound,
+ NULL, &DreamGenContext::alleyBarkSound,
&DreamGenContext::foghornSound, &DreamGenContext::carParkDrip,
&DreamGenContext::carParkDrip, &DreamGenContext::carParkDrip,
&DreamGenContext::carParkDrip
@@ -82,7 +82,7 @@ static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = {
/*&DreamGenContext::intromonks2*/NULL, /*&DreamGenContext::handClap*/NULL,
/*&DreamGenContext::monkAndRyan*/NULL, /*&DreamGenContext::endGameSeq*/NULL,
/*&DreamGenContext::priest*/NULL, &DreamGenContext::madman,
- /*&DreamGenContext::madmansTelly*/NULL, /*&DreamGenContext::alleyBarkSound*/NULL,
+ &DreamGenContext::madmansTelly, /*&DreamGenContext::alleyBarkSound*/NULL,
/*&DreamGenContext::foghornSound*/NULL, /*&DreamGenContext::carParkDrip*/NULL,
/*&DreamGenContext::carParkDrip*/NULL, /*&DreamGenContext::carParkDrip*/NULL,
/*&DreamGenContext::carParkDrip*/NULL
@@ -319,5 +319,13 @@ void DreamGenContext::rockstar(ReelRoutine &routine) {
}
}
+void DreamGenContext::madmansTelly(ReelRoutine &routine) {
+ uint16 nextReelPointer = routine.reelPointer() + 1;
+ if (nextReelPointer == 307)
+ nextReelPointer = 300;
+ routine.setReelPointer(nextReelPointer);
+ showGameReel(&routine);
+}
+
} /*namespace dreamgen */
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index b2bf698..f80dfad 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -395,6 +395,7 @@
void femaleFan(ReelRoutine &routine);
void maleFan(ReelRoutine &routine);
void rockstar(ReelRoutine &routine);
+ void madmansTelly(ReelRoutine &routine);
void singleKey(uint8 key, uint16 x, uint16 y);
void showKeypad();
void showOuterPad();
More information about the Scummvm-git-logs
mailing list