From 77eea722afe175003baba3ed5341bfbf8cf988f6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 19 Sep 2007 13:55:05 +0000 Subject: Modified patch #1738058: "Action recorder". svn-id: r28968 --- engines/sword1/logic.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/sword1/logic.cpp') diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp index c761628128..891c2146b5 100644 --- a/engines/sword1/logic.cpp +++ b/engines/sword1/logic.cpp @@ -26,6 +26,8 @@ #include "common/endian.h" #include "common/util.h" +#include "common/system.h" +#include "common/events.h" #include "sword1/logic.h" #include "sword1/text.h" @@ -54,6 +56,8 @@ namespace Sword1 { uint32 Logic::_scriptVars[NUM_SCRIPT_VARS]; Logic::Logic(ObjectMan *pObjMan, ResMan *resMan, Screen *pScreen, Mouse *pMouse, Sound *pSound, Music *pMusic, Menu *pMenu, OSystem *system, Audio::Mixer *mixer) { + g_system->getEventManager()->registerRandomSource(_rnd, "sword1"); + _objMan = pObjMan; _resMan = resMan; _screen = pScreen; -- cgit v1.2.3