From ea15cf7236789223b259a51fc680f13761d51068 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Mon, 4 Feb 2008 20:35:18 +0000 Subject: Adjusted random number generator, thus improving animation quality in the intro. The general still acts like he is on amphetamines. svn-id: r30791 --- engines/parallaction/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/parallaction') 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"); -- cgit v1.2.3