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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Aug 21 00:14:50 CEST 2010


Revision: 52246
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52246&view=rev
Author:   m_kiewitz
Date:     2010-08-20 22:14:48 +0000 (Fri, 20 Aug 2010)

Log Message:
-----------
SCI: added another comment to kRandom

about hoyle4

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-08-20 22:10:15 UTC (rev 52245)
+++ scummvm/trunk/engines/sci/engine/kmath.cpp	2010-08-20 22:14:48 UTC (rev 52246)
@@ -44,6 +44,8 @@
 		// calculating range is exactly how sierra sci did it and is required for hoyle 4
 		//  where we get called with kRandom(0, -1) and we are supposed to give back values from 0 to 0
 		//  the returned value will be used as displace-offset for a background cel
+		//  note: i assume that the hoyle4 code is actually buggy and it was never fixed because of
+		//         the way sierra sci handled it - "it just worked". It should have called kRandom(0, 0)
 		if (range)
 			range--; // the range value was never returned, our random generator gets 0->range, so fix it
 


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