aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/function.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-09-19 13:55:05 +0000
committerEugene Sandulenko2007-09-19 13:55:05 +0000
commit77eea722afe175003baba3ed5341bfbf8cf988f6 (patch)
treeff95cd001b8929308468d69466623f0c28be476b /engines/cruise/function.cpp
parent2254028365cf5f162bd41cf0011b4475ec608f4c (diff)
downloadscummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.tar.gz
scummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.tar.bz2
scummvm-rg350-77eea722afe175003baba3ed5341bfbf8cf988f6.zip
Modified patch #1738058: "Action recorder".
svn-id: r28968
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r--engines/cruise/function.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 6a6f65a066..2614d30172 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "cruise/cruise.h"
#include "cruise/cruise_main.h"
#include "cruise/cell.h"
#include "common/util.h"
@@ -193,7 +194,7 @@ int16 Op_rand(void) { // TODO: implement
return (0);
}
- return (rand() % var);
+ return (g_cruise->_rnd.getRandomNumber(var - 1));
}
int16 Op_PlayFX(void) { // TODO: implement