[Scummvm-cvs-logs] SF.net SVN: scummvm: [30791] scummvm/trunk/engines/parallaction/objects.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Mon Feb 4 21:35:19 CET 2008


Revision: 30791
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30791&view=rev
Author:   peres001
Date:     2008-02-04 12:35:18 -0800 (Mon, 04 Feb 2008)

Log Message:
-----------
Adjusted random number generator, thus improving animation quality in the intro. The general still acts like he is on amphetamines.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/objects.cpp

Modified: scummvm/trunk/engines/parallaction/objects.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/objects.cpp	2008-02-04 19:57:17 UTC (rev 30790)
+++ scummvm/trunk/engines/parallaction/objects.cpp	2008-02-04 20:35:18 UTC (rev 30791)
@@ -245,7 +245,7 @@
 	}
 
 	if (_flags & kParaRandom) {
-		return (_vm->_rnd.getRandomNumber(65536) * _value) / 32767;
+		return (_vm->_rnd.getRandomNumber(65536) * _value) >> 16;
 	}
 
 	error("Parameter is not an r-value");


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