summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-29 00:27:25 +0000
committerrubidium <rubidium@openttd.org>2008-01-29 00:27:25 +0000
commit3b2145aafe29d6abd8aeef3dccdb5cf587f111d2 (patch)
treea27a03588a37fa3492201013f224c9fdf751ecc3 /src/genworld.cpp
parentfde33b554790379af624e3c4c548535ca4097546 (diff)
downloadopenttd-3b2145aafe29d6abd8aeef3dccdb5cf587f111d2.tar.xz
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index f33df1a25..08768e024 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -90,7 +90,7 @@ static void *_GenerateWorld(void *arg)
if (_network_dedicated) DEBUG(net, 0, "Generating map, please wait...");
/* Set the Random() seed to generation_seed so we produce the same map with the same seed */
if (_patches.generation_seed == GENERATE_NEW_SEED) _patches.generation_seed = _patches_newgame.generation_seed = InteractiveRandom();
- _random_seeds[0][0] = _random_seeds[0][1] = _patches.generation_seed;
+ _random.SetSeed(_patches.generation_seed);
SetGeneratingWorldProgress(GWP_MAP_INIT, 2);
SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, VHM_NONE, WC_MAIN_WINDOW, 0);