diff options
author | truelight <truelight@openttd.org> | 2007-03-15 14:34:10 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-03-15 14:34:10 +0000 |
commit | 89794adebe4c4d796e6472004b5baf4b602178b5 (patch) | |
tree | df65c2eb280db32f0b8fb72e82d2300a7fee05c8 | |
parent | dd2cd20026b01a7edcf8b0f1ef10bbfb5400b372 (diff) | |
download | openttd-89794adebe4c4d796e6472004b5baf4b602178b5.tar.xz |
(svn r9205) -Fix: if you started openttd with '-g' you got the same map every run
-rw-r--r-- | src/openttd.cpp | 2 |
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; |