aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/scripts.cpp
diff options
context:
space:
mode:
authorMax Horn2011-05-17 12:31:21 +0200
committerMax Horn2011-05-17 12:31:21 +0200
commit64bcb731bf0b28d9bf1391ac265ea47ba0a2f374 (patch)
treebd3b30a23f0d1a0c48f58124891c307e28137d6d /engines/lure/scripts.cpp
parenta3c326456110f9f5b71ff3a91bbad15b5232c5d7 (diff)
downloadscummvm-rg350-64bcb731bf0b28d9bf1391ac265ea47ba0a2f374.tar.gz
scummvm-rg350-64bcb731bf0b28d9bf1391ac265ea47ba0a2f374.tar.bz2
scummvm-rg350-64bcb731bf0b28d9bf1391ac265ea47ba0a2f374.zip
LURE: Rename method random() -> getRandom()
Also get rid of a slight bias for 0 in the random numbers (it was selected twice as often as any other number).
Diffstat (limited to 'engines/lure/scripts.cpp')
-rw-r--r--engines/lure/scripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp
index 7cd8be43d2..22656dd3fe 100644
--- a/engines/lure/scripts.cpp
+++ b/engines/lure/scripts.cpp
@@ -1127,7 +1127,7 @@ uint16 Script::execute(uint16 startOffset) {
break;
case S_OPCODE_RANDOM:
- param = r.random() >> 8; // make number between 0 to 255
+ param = r.getRandom() >> 8; // make number between 0 to 255
break;
case S_OPCODE_END: