[Scummvm-cvs-logs] SF.net SVN: scummvm: [21758] scummvm/trunk/engines/simon

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Apr 10 01:43:03 CEST 2006


Revision: 21758
Author:   eriktorbjorn
Date:     2006-04-10 01:42:29 -0700 (Mon, 10 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21758&view=rev

Log Message:
-----------
Merged o_printStr() into o1_screenTextMsg().

Modified Paths:
--------------
    scummvm/trunk/engines/simon/items.cpp
    scummvm/trunk/engines/simon/simon.cpp
    scummvm/trunk/engines/simon/simon.h
Modified: scummvm/trunk/engines/simon/items.cpp
===================================================================
--- scummvm/trunk/engines/simon/items.cpp	2006-04-10 08:34:16 UTC (rev 21757)
+++ scummvm/trunk/engines/simon/items.cpp	2006-04-10 08:42:29 UTC (rev 21758)
@@ -1329,7 +1329,31 @@
 	
 void SimonEngine::o1_screenTextMsg() {
 	// 162: print string
-	o_printStr();
+	uint vgaSpriteId = getVarOrByte();
+	uint color = getVarOrByte();
+	uint stringId = getNextStringID();
+	const byte *string_ptr = NULL;
+	uint speech_id = 0;
+	TextLocation *tl;
+
+	if (stringId != 0xFFFF)
+		string_ptr = getStringPtrByID(stringId);
+
+	if (getFeatures() & GF_TALKIE)
+		speech_id = (uint16)getNextWord();
+
+	if (getGameType() == GType_FF)
+		vgaSpriteId = 1;
+
+	tl = getTextLocation(vgaSpriteId);
+	if (_speech && speech_id != 0)
+		playSpeech(speech_id, vgaSpriteId);
+	if ((getGameType() == GType_SIMON2) && (getFeatures() & GF_TALKIE) && speech_id == 0)
+		o_kill_sprite_simon2(2, vgaSpriteId + 2);
+
+	if (string_ptr != NULL && (speech_id == 0 || _subtitles))
+		printScreenText(vgaSpriteId, color, (const char *)string_ptr, tl->x, tl->y, tl->width);
+
 }
 
 void SimonEngine::o1_playEffect() {

Modified: scummvm/trunk/engines/simon/simon.cpp
===================================================================
--- scummvm/trunk/engines/simon/simon.cpp	2006-04-10 08:34:16 UTC (rev 21757)
+++ scummvm/trunk/engines/simon/simon.cpp	2006-04-10 08:42:29 UTC (rev 21758)
@@ -2144,34 +2144,6 @@
 	return NULL;
 }
 
-void SimonEngine::o_printStr() {
-	uint vgaSpriteId = getVarOrByte();
-	uint color = getVarOrByte();
-	uint stringId = getNextStringID();
-	const byte *string_ptr = NULL;
-	uint speech_id = 0;
-	TextLocation *tl;
-
-	if (stringId != 0xFFFF)
-		string_ptr = getStringPtrByID(stringId);
-
-	if (getFeatures() & GF_TALKIE)
-		speech_id = (uint16)getNextWord();
-
-	if (getGameType() == GType_FF)
-		vgaSpriteId = 1;
-
-	tl = getTextLocation(vgaSpriteId);
-	if (_speech && speech_id != 0)
-		playSpeech(speech_id, vgaSpriteId);
-	if ((getGameType() == GType_SIMON2) && (getFeatures() & GF_TALKIE) && speech_id == 0)
-		o_kill_sprite_simon2(2, vgaSpriteId + 2);
-
-	if (string_ptr != NULL && (speech_id == 0 || _subtitles))
-		printScreenText(vgaSpriteId, color, (const char *)string_ptr, tl->x, tl->y, tl->width);
-
-}
-
 void SimonEngine::loadZone(uint vga_res) {
 	VgaPointersEntry *vpe;
 

Modified: scummvm/trunk/engines/simon/simon.h
===================================================================
--- scummvm/trunk/engines/simon/simon.h	2006-04-10 08:34:16 UTC (rev 21757)
+++ scummvm/trunk/engines/simon/simon.h	2006-04-10 08:42:29 UTC (rev 21758)
@@ -585,7 +585,6 @@
 	void o_fadeToBlack();
 
 	TextLocation *getTextLocation(uint a);
-	void o_printStr();
 	void o_setup_cond_c();
 	void setup_cond_c_helper();
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list