[Scummvm-cvs-logs] CVS: scummvm/scumm script_v2.cpp,2.72,2.73

James Brown ender at users.sourceforge.net
Fri May 16 05:59:13 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv3362/scumm

Modified Files:
	script_v2.cpp 
Log Message:
test stuff


Index: script_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v2.cpp,v
retrieving revision 2.72
retrieving revision 2.73
diff -u -d -r2.72 -r2.73
--- script_v2.cpp	16 May 2003 02:33:08 -0000	2.72
+++ script_v2.cpp	16 May 2003 12:58:49 -0000	2.73
@@ -875,7 +875,25 @@
 }
 
 void Scumm_v2::o2_drawSentence() {
-	warning("TODO o2_drawSentence()");
+	byte *verb_bit = getResourceAddress(rtVerb, getVerbSlot(_scummVars[26],0));
+	byte *name_bit, *name2_bit;
+
+	if (_scummVars[27] > 0) {
+		name_bit = getObjOrActorName(_scummVars[27]);
+	} else {
+		name_bit = NULL;
+//(byte*)strdup("");
+	}
+
+	if (_scummVars[28] > 0) {
+		name2_bit = getObjOrActorName(_scummVars[28]);
+	} else {
+		name2_bit = NULL;
+//(byte*)strdup("");
+	}
+
+	warning("TODO o2_drawSentence(%s, %s, %s)", 
+		verb_bit, name_bit, name2_bit);
 }
 
 void Scumm_v2::o2_ifClassOfIs() {





More information about the Scummvm-git-logs mailing list