[Scummvm-cvs-logs] SF.net SVN: scummvm:[52242] scummvm/trunk/engines/sci/engine/kmath.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Aug 20 23:05:56 CEST 2010
Revision: 52242
http://scummvm.svn.sourceforge.net/scummvm/?rev=52242&view=rev
Author: thebluegr
Date: 2010-08-20 21:05:56 +0000 (Fri, 20 Aug 2010)
Log Message:
-----------
SCI: Fixed typos in kRandom()
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 21:04:39 UTC (rev 52241)
+++ scummvm/trunk/engines/sci/engine/kmath.cpp 2010-08-20 21:05:56 UTC (rev 52242)
@@ -44,9 +44,10 @@
// then it calls it with (0x0, 0x40) and puts x plus the result in y
// to displace view 924 in kDrawCel right afterwards and create a
// semi-random background in those dialogs. With the current code,
- // this case isn't handled properly, and the dialog is drawn off-screen.
- // -1 seems to be incorrect here, so we just return a 0 for now, till
- // we figure out how to handle this.
+ // this case isn't handled properly, and the dialog background is
+ // drawn off-screen. -1 seems to be incorrect here (probably a newly
+ // added special case), so we just return a 0 for now, till we
+ // figure out how to handle this.
if (fromNumber == 0 && toNumber == 0xFFFF) {
if (g_sci->getGameId() == GID_HOYLE4) {
warning("HACK: Special case for Hoyle 4 dialogs in kRandom");
@@ -54,12 +55,12 @@
} else {
// Just throw a warning in other games for now, but don't modify
// the result...
- warning("kRandom(0x0, 0xFFFF called - special case?");
+ warning("kRandom(0x0, 0xFFFF) called - special case?");
}
}
- // TODO/CHECKME: It is propbably not required to check whether
+ // TODO/CHECKME: It is probably not required to check whether
// toNumber is greater than fromNumber, at least not when one
// goes by their names, but let us be on the safe side and
// allow toNumber to be smaller than fromNumber too.
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