aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-23 00:23:21 +0100
committerAdrian Frühwirth2018-03-23 12:48:11 +0000
commit99c72c7b5cf651b83d300e9a8a0a481cfe9b00de (patch)
tree040ebefcbe7e2271ed87506b6591b7bc3d4730e1
parent39fd49e131a962ae9c80b61b9beb40ce6c54eb50 (diff)
downloadscummvm-rg350-99c72c7b5cf651b83d300e9a8a0a481cfe9b00de.tar.gz
scummvm-rg350-99c72c7b5cf651b83d300e9a8a0a481cfe9b00de.tar.bz2
scummvm-rg350-99c72c7b5cf651b83d300e9a8a0a481cfe9b00de.zip
HUGO: Remove unnecessary call to setSeed()
Initializing Common::RandomSource's seed with a fixed value will always yield the same sequence of pseudo-random numbers which is probably not desirable. Since the constructor takes care of initializing the seed properly doing so manually is not needed.
-rw-r--r--engines/hugo/hugo.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp
index 5f6892bd20..ed82c04d7d 100644
--- a/engines/hugo/hugo.cpp
+++ b/engines/hugo/hugo.cpp
@@ -638,7 +638,6 @@ void HugoEngine::initialize() {
calcMaxScore(); // Initialize maxscore
_rnd = new Common::RandomSource("hugo");
- _rnd->setSeed(42); // Kick random number generator
switch (_gameVariant) {
case kGameVariantH1Dos: