aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/preagi.cpp
diff options
context:
space:
mode:
authorMax Horn2010-03-18 15:07:11 +0000
committerMax Horn2010-03-18 15:07:11 +0000
commitd78dba3bcae77e85107836cfeecaa958b7ebe4d4 (patch)
treeffe9793ec249ebe8bb429ce1cbeb9ef5155b0578 /engines/agi/preagi.cpp
parentef93d6921ee4dfed349093bd7378d99107d9e211 (diff)
downloadscummvm-rg350-d78dba3bcae77e85107836cfeecaa958b7ebe4d4.tar.gz
scummvm-rg350-d78dba3bcae77e85107836cfeecaa958b7ebe4d4.tar.bz2
scummvm-rg350-d78dba3bcae77e85107836cfeecaa958b7ebe4d4.zip
COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
Diffstat (limited to 'engines/agi/preagi.cpp')
-rw-r--r--engines/agi/preagi.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp
index 67583d9def..f92d5e8aa0 100644
--- a/engines/agi/preagi.cpp
+++ b/engines/agi/preagi.cpp
@@ -24,6 +24,7 @@
*/
#include "common/config-manager.h"
+#include "common/random.h"
#include "sound/mididrv.h"
@@ -183,4 +184,8 @@ Common::Error PreAgiEngine::go() {
return Common::kNoError;
}
+int PreAgiEngine::rnd(int hi) {
+ return (_rnd->getRandomNumber(hi - 1) + 1);
+}
+
} // End of namespace Agi