diff options
author | maedhros <maedhros@openttd.org> | 2007-04-28 15:06:32 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-04-28 15:06:32 +0000 |
commit | 6ebe60fc175ac374bf19f29fee1719b06e80a6b7 (patch) | |
tree | a1d7c41f3672e960253e07e51c7438be0bba480c /src/genworld.cpp | |
parent | 57ad2dd0fbf5292cf6b9386544272414d34d0da3 (diff) | |
download | openttd-6ebe60fc175ac374bf19f29fee1719b06e80a6b7.tar.xz |
(svn r9734) -Feature: Add an option to automatically pause when starting a new game.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index c2b025f31..e766df23f 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -10,6 +10,7 @@ #include "table/sprites.h" #include "variables.h" #include "thread.h" +#include "command.h" #include "genworld.h" #include "gfx.h" #include "gfxinit.h" @@ -153,6 +154,8 @@ static void *_GenerateWorld(void *arg) if (_network_dedicated) DEBUG(net, 0, "Map generated, starting game"); + if (_patches.pause_on_newgame) DoCommandP(0, 1, 0, NULL, CMD_PAUSE); + return NULL; } |