[Scummvm-cvs-logs] SF.net SVN: scummvm:[50309] scummvm/trunk/engines/sci/engine/kmath.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Jun 26 11:34:14 CEST 2010


Revision: 50309
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50309&view=rev
Author:   m_kiewitz
Date:     2010-06-26 09:34:14 +0000 (Sat, 26 Jun 2010)

Log Message:
-----------
SCI: making hack inside kAbs hoyle1 specific, added fixme

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kmath.cpp

Modified: scummvm/trunk/engines/sci/engine/kmath.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kmath.cpp	2010-06-26 08:29:55 UTC (rev 50308)
+++ scummvm/trunk/engines/sci/engine/kmath.cpp	2010-06-26 09:34:14 UTC (rev 50309)
@@ -36,9 +36,12 @@
 }
 
 reg_t kAbs(EngineState *s, int argc, reg_t *argv) {
-	// This is a hack, but so is the code in Hoyle1 that needs it.
-	if (argv[0].segment)
-		return make_reg(0, 0x3e9); // Yes people, this is an object
+	if (g_sci->getGameId() == GID_HOYLE1) {
+		// This is a hack, but so is the code in Hoyle1 that needs it.
+		// FIXME: where is this exactly needed?
+		if (argv[0].segment)
+			return make_reg(0, 0x3e9); // Yes people, this is an object
+	}
 	return make_reg(0, abs(argv[0].toSint16()));
 }
 


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