[Scummvm-cvs-logs] scummvm master -> 5eb79fc6f4fd1c96ed8ddbed939a2e9009373688

tramboi bertrand_augereau at yahoo.fr
Wed Nov 30 11:11:43 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:
5eb79fc6f4 DREAMWEB: Removed a few unused stubs


Commit: 5eb79fc6f4fd1c96ed8ddbed939a2e9009373688
    https://github.com/scummvm/scummvm/commit/5eb79fc6f4fd1c96ed8ddbed939a2e9009373688
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-30T01:53:59-08:00

Commit Message:
DREAMWEB: Removed a few unused stubs

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



diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index 22fa9ef..79749bd 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -314,6 +314,9 @@ generator = cpp(context, "DreamGen", blacklist = [
 	'setlocation',
 	'loadtemptext',
 	'loadtraveltext',
+	'steady',
+	'constant',
+	'random',
 	], skip_output = [
 	# These functions are processed but not output
 	'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 99be360..98c9855 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -2104,44 +2104,6 @@ hissnoise:
 	playchannel1();
 }
 
-void DreamGenContext::random() {
-	STACK_CHECK;
-	randomnum1();
-	push(di);
-	_and(ax, 7);
-	_add(di, 18);
-	_add(di, ax);
-	al = ds.byte(di);
-	di = pop();
-	es.byte(bx+15) = al;
-}
-
-void DreamGenContext::steady() {
-	STACK_CHECK;
-	al = ds.byte(di+18);
-	ds.byte(di+17) = al;
-	es.byte(bx+15) = al;
-}
-
-void DreamGenContext::constant() {
-	STACK_CHECK;
-	_inc(es.byte(bx+19));
-	cl = es.byte(bx+19);
-	ch = 0;
-	_add(di, cx);
-	_cmp(ds.byte(di+18), 255);
-	if (!flags.z())
-		goto gotconst;
-	_sub(di, cx);
-	cx = 0;
-	es.byte(bx+19) = cl;
-gotconst:
-	al = ds.byte(di+18);
-	_sub(di, cx);
-	es.byte(bx+15) = al;
-	ds.byte(di+17) = al;
-}
-
 void DreamGenContext::soundonreels() {
 	STACK_CHECK;
 	bl = data.byte(kReallocation);
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index d4e6e08..e8642e8 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -434,9 +434,6 @@ public:
 	static const uint16 addr_showpcx = 0xc1cc;
 	static const uint16 addr_deleverything = 0xc1c0;
 	static const uint16 addr_soundonreels = 0xc1a8;
-	static const uint16 addr_constant = 0xc184;
-	static const uint16 addr_steady = 0xc180;
-	static const uint16 addr_random = 0xc17c;
 	static const uint16 addr_liftnoise = 0xc178;
 	static const uint16 addr_backobject = 0xc170;
 	static const uint16 addr_reminders = 0xc15c;
@@ -1331,14 +1328,12 @@ public:
 	void rollendcredits();
 	void intro1text();
 	void transfertoex();
-	void steady();
 	void reexfrominv();
 	void examinventory();
 	void getridoftemp3();
 	void usedryer();
 	void outofinv();
 	void diarykeyp();
-	void random();
 	void mainman();
 	void mansatstill();
 	void channel1only();
@@ -1352,7 +1347,6 @@ public:
 	void madman();
 	void enablesoundint();
 	void madmanstelly();
-	void constant();
 	void purgealocation();
 	void sparkydrip();
 	void getridofpit();






More information about the Scummvm-git-logs mailing list