diff options
author | Max Horn | 2011-05-17 12:10:05 +0200 |
---|---|---|
committer | Max Horn | 2011-05-17 12:23:41 +0200 |
commit | d1652922340abbc852ab1c52125cf1a4c559a231 (patch) | |
tree | 3f64b9a4f2ead3eac9957a13667deca92ae9b909 /common/random.cpp | |
parent | fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2 (diff) | |
download | scummvm-rg350-d1652922340abbc852ab1c52125cf1a4c559a231.tar.gz scummvm-rg350-d1652922340abbc852ab1c52125cf1a4c559a231.tar.bz2 scummvm-rg350-d1652922340abbc852ab1c52125cf1a4c559a231.zip |
COMMON: Remove unused RandomSource destructor, clarify comments, cleanup
Diffstat (limited to 'common/random.cpp')
-rw-r--r-- | common/random.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/common/random.cpp b/common/random.cpp index 9ecd5d0892..55fa3cbd30 100644 --- a/common/random.cpp +++ b/common/random.cpp @@ -33,15 +33,12 @@ RandomSource::RandomSource(const String &name) { uint32 seed = g_system->getMillis(); setSeed(seed); - // Register this random source with the event recorder. This might - // reset the seed, so call it *after* the initial seed has been set. + // Register this random source with the event recorder. This may end + // up querying or resetting the current seed, so we must call it + // *after* the initial seed has been set. g_eventRec.registerRandomSource(*this, name); } -RandomSource::~RandomSource() { - // TODO: Unregister with g_eventRec -} - void RandomSource::setSeed(uint32 seed) { _randSeed = seed; } |