summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-03-15 14:34:10 +0000
committertruelight <truelight@openttd.org>2007-03-15 14:34:10 +0000
commit89794adebe4c4d796e6472004b5baf4b602178b5 (patch)
treedf65c2eb280db32f0b8fb72e82d2300a7fee05c8 /src/openttd.cpp
parentdd2cd20026b01a7edcf8b0f1ef10bbfb5400b372 (diff)
downloadopenttd-89794adebe4c4d796e6472004b5baf4b602178b5.tar.xz
(svn r9205) -Fix: if you started openttd with '-g' you got the same map every run
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 5a9c7499c..3e5bd0bd8 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -419,6 +419,8 @@ int ttd_main(int argc, char *argv[])
_switch_mode = SM_LOAD;
} else {
_switch_mode = SM_NEWGAME;
+ /* Give a random map */
+ generation_seed = InteractiveRandom();
}
break;
case 'G': generation_seed = atoi(mgo.opt); break;