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 | 41caaf4d144f8f7b0e401f8e55a1995fb793f85c (patch) | |
tree | df65c2eb280db32f0b8fb72e82d2300a7fee05c8 | |
parent | eff72d1962882a50de5a81bbc28a734baebf526d (diff) | |
download | openttd-41caaf4d144f8f7b0e401f8e55a1995fb793f85c.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; |