[Scummvm-cvs-logs] scummvm master -> ba12c02a7513f31e20c126baa9562764bcc6cc4b

tramboi bertrand_augereau at yahoo.fr
Thu Dec 1 15:59:00 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:
ba12c02a75 DREAMWEB: 'eden' ported to C++


Commit: ba12c02a7513f31e20c126baa9562764bcc6cc4b
    https://github.com/scummvm/scummvm/commit/ba12c02a7513f31e20c126baa9562764bcc6cc4b
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-12-01T06:55:50-08:00

Commit Message:
DREAMWEB: 'eden' ported to C++

Changed paths:
    devtools/tasmrecover/tasm-recover
    engines/dreamweb/dreamgen.cpp
    engines/dreamweb/dreamgen.h
    engines/dreamweb/sprite.cpp
    engines/dreamweb/stubs.h



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index bdb58a5..e36c3df 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -339,6 +339,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'othersmoker',
 	'barwoman',
 	'gamer',
+	'eden',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 260e6d5..cfdfcd4 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -170,15 +170,6 @@ void DreamGenContext::manasleep() {
 	addtopeoplelist();
 }
 
-void DreamGenContext::eden() {
-	STACK_CHECK;
-	_cmp(data.byte(kGeneraldead), 0);
-	if (!flags.z())
-		return /* (notinbed) */;
-	showgamereel();
-	addtopeoplelist();
-}
-
 void DreamGenContext::edeninbath() {
 	STACK_CHECK;
 	_cmp(data.byte(kGeneraldead), 0);
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index a5fba4d..d6d2a16 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -478,7 +478,6 @@ public:
 	static const uint16 addr_femalefan = 0xc028;
 	static const uint16 addr_malefan = 0xc024;
 	static const uint16 addr_edeninbath = 0xc020;
-	static const uint16 addr_eden = 0xc01c;
 	static const uint16 addr_manasleep = 0xc018;
 	static const uint16 addr_attendant = 0xc014;
 	static const uint16 addr_smokebloke = 0xc010;
@@ -1173,7 +1172,6 @@ public:
 	void fadedownmon();
 	void loadcart();
 	void bartender();
-	void eden();
 	void showdiary();
 	void outofopen();
 	void dircom();
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp
index f8c865d..a9f5bf1 100644
--- a/engines/dreamweb/sprite.cpp
+++ b/engines/dreamweb/sprite.cpp
@@ -569,7 +569,7 @@ void DreamGenContext::showrain() {
 
 static void (DreamGenContext::*reelCallbacks[57])() = {
 	NULL, NULL,
-	&DreamGenContext::eden, &DreamGenContext::edeninbath,
+	NULL, &DreamGenContext::edeninbath,
 	&DreamGenContext::sparky, &DreamGenContext::smokebloke,
 	&DreamGenContext::manasleep, &DreamGenContext::drunk,
 	&DreamGenContext::receptionist, &DreamGenContext::malefan,
@@ -601,7 +601,7 @@ static void (DreamGenContext::*reelCallbacks[57])() = {
 
 static void (DreamGenContext::*reelCallbacksCPP[57])(ReelRoutine &) = {
 	&DreamGenContext::gamer, &DreamGenContext::sparkydrip,
-	/*&DreamGenContext::eden*/NULL, /*&DreamGenContext::edeninbath*/NULL,
+	&DreamGenContext::eden, /*&DreamGenContext::edeninbath*/NULL,
 	/*&DreamGenContext::sparky*/NULL, /*&DreamGenContext::smokebloke*/NULL,
 	/*&DreamGenContext::manasleep*/NULL, /*&DreamGenContext::drunk*/NULL,
 	/*&DreamGenContext::receptionist*/NULL, /*&DreamGenContext::malefan*/NULL,
@@ -1100,5 +1100,12 @@ void DreamGenContext::gamer(ReelRoutine &routine) {
 	addtopeoplelist(&routine);
 }
 
+void DreamGenContext::eden(ReelRoutine &routine) {
+	if (data.byte(kGeneraldead))
+		return;
+	showgamereel(&routine);
+	addtopeoplelist(&routine);
+}
+
 } /*namespace dreamgen */
 
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index b1f2b8a..68349db 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -380,4 +380,5 @@
 	void sparkydrip(ReelRoutine &routine);
 	void othersmoker(ReelRoutine &routine);
 	void gamer(ReelRoutine &routine);
+	void eden(ReelRoutine &routine);
 






More information about the Scummvm-git-logs mailing list