diff options
author | Einar Johan Trøan Sømåen | 2012-08-07 13:32:26 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-07 13:32:26 +0200 |
commit | e32b79bff1260f8d2853404f750acc22209a323b (patch) | |
tree | b1d3191d6c3e91137af713511102792af99c893a /engines/wintermute/wintermute.cpp | |
parent | 9bda50ef48e47160c2788399bf7a4d4b04848aca (diff) | |
download | scummvm-rg350-e32b79bff1260f8d2853404f750acc22209a323b.tar.gz scummvm-rg350-e32b79bff1260f8d2853404f750acc22209a323b.tar.bz2 scummvm-rg350-e32b79bff1260f8d2853404f750acc22209a323b.zip |
WINTERMUTE: Save the random-seed as well.
Diffstat (limited to 'engines/wintermute/wintermute.cpp')
-rw-r--r-- | engines/wintermute/wintermute.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp index 2dadd51b09..b97bb22e6b 100644 --- a/engines/wintermute/wintermute.cpp +++ b/engines/wintermute/wintermute.cpp @@ -53,7 +53,6 @@ WinterMuteEngine::WinterMuteEngine() : Engine(g_system) { _classReg->registerClasses(); _game = new AdGame(""); - _rnd = NULL; } WinterMuteEngine::WinterMuteEngine(OSystem *syst, const ADGameDescription *desc) @@ -74,8 +73,6 @@ WinterMuteEngine::WinterMuteEngine(OSystem *syst, const ADGameDescription *desc) DebugMan.addDebugChannel(kWinterMuteDebugFont, "font", "Text-drawing-related messages"); DebugMan.addDebugChannel(kWinterMuteDebugFileAccess, "file-access", "Non-critical problems like missing files"); DebugMan.addDebugChannel(kWinterMuteDebugAudio, "audio", "audio-playback-related issues"); - // Don't forget to register your random source - _rnd = new Common::RandomSource("WinterMute"); _game = NULL; @@ -86,7 +83,6 @@ WinterMuteEngine::WinterMuteEngine(OSystem *syst, const ADGameDescription *desc) WinterMuteEngine::~WinterMuteEngine() { // Dispose your resources here deinit(); - delete _rnd; delete _game; delete _console; g_wintermute = NULL; @@ -381,8 +377,4 @@ bool WinterMuteEngine::getGameInfo(const Common::FSList &fslist, Common::String return retVal; } -uint32 WinterMuteEngine::randInt(int from, int to) { - return _rnd->getRandomNumberRng(from, to); -} - } // End of namespace WinterMute |