[Scummvm-cvs-logs] scummvm master -> 1cb1df369953b6bc9cfac555cc165cb972c96f8f

bluegr md5 at scummvm.org
Sat Dec 24 00:04:30 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:
1cb1df3699 DREAMWEB: Port 'incryanpage' to C++


Commit: 1cb1df369953b6bc9cfac555cc165cb972c96f8f
    https://github.com/scummvm/scummvm/commit/1cb1df369953b6bc9cfac555cc165cb972c96f8f
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-12-23T15:02:43-08:00

Commit Message:
DREAMWEB: Port 'incryanpage' to C++

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



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index bebdc14..b75b0d3 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -516,6 +516,7 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'hotelbell',
 	'hotelcontrol',
 	'identifyob',
+	'incryanpage',
 	'initialinv',
 	'initialmoncols',
 	'initman',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 265b215..17f862c 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -284,40 +284,6 @@ findopen2a:
 		goto findopen1a;
 }
 
-void DreamGenContext::incRyanPage() {
-	STACK_CHECK;
-	_cmp(data.byte(kCommandtype), 222);
-	if (flags.z())
-		goto alreadyincryan;
-	data.byte(kCommandtype) = 222;
-	al = 31;
-	commandOnly();
-alreadyincryan:
-	ax = data.word(kMousebutton);
-	_cmp(ax, data.word(kOldbutton));
-	if (flags.z())
-		return /* (noincryan) */;
-	_and(ax, 1);
-	if (!flags.z())
-		goto doincryan;
-	return;
-doincryan:
-	ax = data.word(kMousex);
-	_sub(ax, (80)+167);
-	data.byte(kRyanpage) = -1;
-findnewpage:
-	_inc(data.byte(kRyanpage));
-	_sub(ax, 18);
-	if (!flags.c())
-		goto findnewpage;
-	delPointer();
-	fillRyan();
-	readMouse();
-	showPointer();
-	workToScreen();
-	delPointer();
-}
-
 void DreamGenContext::getObTextStart() {
 	STACK_CHECK;
 	es = data.word(kFreedesc);
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index f836b58..b620b21 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -486,7 +486,6 @@ public:
 	void read();
 	void searchForString();
 	void selectOpenOb();
-	void incRyanPage();
 	void searchForFiles();
 	void getExAd();
 	void swapWithInv();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index b302bce..9efb49b 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -3769,4 +3769,23 @@ void DreamGenContext::edensFlatReminders() {
 	data.byte(kProgresspoints)++;	// got card
 }
 
+void DreamGenContext::incRyanPage() {
+	if (data.byte(kCommandtype) != 222) {
+		data.byte(kCommandtype) = 222;
+		commandOnly(31);
+	}
+
+	if (data.word(kMousebutton) == data.word(kOldbutton) || (data.word(kMousebutton) & 1))
+		return;
+
+	data.byte(kRyanpage) = (data.word(kMousex) - (kInventx + 167)) / 18;
+
+	delPointer();
+	fillRyan();
+	readMouse();
+	showPointer();
+	workToScreenCPP();
+	delPointer();
+
+}
 } // End of namespace DreamGen
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index a58bb25..83b4ebf 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -338,5 +338,6 @@
 	void inToInv();
 	void outOfInv();
 	void edensFlatReminders();
+	void incRyanPage();
 
 #endif






More information about the Scummvm-git-logs mailing list