diff options
author | Eugene Sandulenko | 2007-09-19 13:55:05 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-09-19 13:55:05 +0000 |
commit | 77eea722afe175003baba3ed5341bfbf8cf988f6 (patch) | |
tree | ff95cd001b8929308468d69466623f0c28be476b /engines/sword1 | |
parent | 2254028365cf5f162bd41cf0011b4475ec608f4c (diff) | |
download | scummvm-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/sword1')
-rw-r--r-- | engines/sword1/logic.cpp | 4 | ||||
-rw-r--r-- | engines/sword1/sound.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
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; diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index 44394ee1d9..5108ed338e 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -27,6 +27,7 @@ #include "common/endian.h" #include "common/util.h" +#include "common/events.h" #include "sword1/sound.h" #include "sword1/resman.h" @@ -44,6 +45,7 @@ namespace Sword1 { #define SPEECH_FLAGS (Audio::Mixer::FLAG_16BITS | Audio::Mixer::FLAG_AUTOFREE | Audio::Mixer::FLAG_LITTLE_ENDIAN) Sound::Sound(const char *searchPath, Audio::Mixer *mixer, ResMan *pResMan) { + g_system->getEventManager()->registerRandomSource(_rnd, "sword1sound"); strcpy(_filePath, searchPath); _mixer = mixer; _resMan = pResMan; |