diff options
author | Nicola Mettifogo | 2008-02-04 20:35:18 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-04 20:35:18 +0000 |
commit | ea15cf7236789223b259a51fc680f13761d51068 (patch) | |
tree | 5cd3ec0749334a3455403631abbd4f471664e6f3 | |
parent | a2101c0c6c53f5e18a898392c36663b21e28ec16 (diff) | |
download | scummvm-rg350-ea15cf7236789223b259a51fc680f13761d51068.tar.gz scummvm-rg350-ea15cf7236789223b259a51fc680f13761d51068.tar.bz2 scummvm-rg350-ea15cf7236789223b259a51fc680f13761d51068.zip |
Adjusted random number generator, thus improving animation quality in the intro. The general still acts like he is on amphetamines.
svn-id: r30791
-rw-r--r-- | engines/parallaction/objects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/objects.cpp b/engines/parallaction/objects.cpp index b821e36a79..55d157db1b 100644 --- a/engines/parallaction/objects.cpp +++ b/engines/parallaction/objects.cpp @@ -245,7 +245,7 @@ int16 ScriptVar::getRValue() { } if (_flags & kParaRandom) { - return (_vm->_rnd.getRandomNumber(65536) * _value) / 32767; + return (_vm->_rnd.getRandomNumber(65536) * _value) >> 16; } error("Parameter is not an r-value"); |