aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/scripts.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-25 12:59:46 +0000
committerJohannes Schickel2009-07-25 12:59:46 +0000
commit7e71865e91a19b022a5ad839802f79a5f300fe8d (patch)
treec86e3e37eea3ec566c6c8a1811cb8cc16196b910 /engines/lure/scripts.cpp
parent6d1a386471711df4c9ed48be3646a16f81ae0d46 (diff)
downloadscummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.tar.gz
scummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.tar.bz2
scummvm-rg350-7e71865e91a19b022a5ad839802f79a5f300fe8d.zip
Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
Diffstat (limited to 'engines/lure/scripts.cpp')
-rw-r--r--engines/lure/scripts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp
index 391147ebd5..f9d854a73b 100644
--- a/engines/lure/scripts.cpp
+++ b/engines/lure/scripts.cpp
@@ -34,6 +34,7 @@
#include "lure/sound.h"
#include "common/stack.h"
#include "common/endian.h"
+#include "common/EventRecorder.h"
namespace Lure {
@@ -739,7 +740,7 @@ void Script::addActions(uint16 hotspotId, uint16 actions, uint16 v3) {
void Script::randomToGeneral(uint16 maxVal, uint16 minVal, uint16 v3) {
Common::RandomSource rnd;
- g_system->getEventManager()->registerRandomSource(rnd, "lureScripts");
+ g_eventRec.registerRandomSource(rnd, "lureScripts");
uint16 v = minVal + rnd.getRandomNumber(maxVal - minVal);
Resources::getReference().fieldList().setField(GENERAL, v);
}