diff options
-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"); |