[Scummvm-cvs-logs] SF.net SVN: scummvm: [25211] scummvm/trunk/engines/kyra/script_v1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Jan 26 23:28:00 CET 2007


Revision: 25211
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25211&view=rev
Author:   lordhoto
Date:     2007-01-26 14:27:59 -0800 (Fri, 26 Jan 2007)

Log Message:
-----------
Workaround for bug #1582672 ("KYRA1: Text crippled and drawn wrong").

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/script_v1.cpp

Modified: scummvm/trunk/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v1.cpp	2007-01-26 22:07:38 UTC (rev 25210)
+++ scummvm/trunk/engines/kyra/script_v1.cpp	2007-01-26 22:27:59 UTC (rev 25211)
@@ -1118,6 +1118,13 @@
 
 int KyraEngine::o1_fatPrint(ScriptState *script) {
 	debugC(3, kDebugLevelScriptFuncs, "o1_fatPrint(%p) ('%s', %d, %d, %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+
+	// Workround for bug #1582672 ("KYRA1: Text crippled and drawn wrong")
+	// I'm not sure how the original handels this, since it seems to call
+	// printText also, maybe it fails somewhere inside...
+	// TODO: fix the reason for this workaround ;-)
+	if (_currentRoom == 117)
+		return 0;
 	_text->printText(stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	return 0;
 }


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