summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-02-13 09:42:49 +0000
committercelestar <celestar@openttd.org>2005-02-13 09:42:49 +0000
commit563eac90ca20eddd6d359142af36e7387660dff5 (patch)
tree822211e1a18fb70fe4220e3dc0f3c2f08de03141 /main_gui.c
parenta011190723179f41a81b0445b7567b0c9aa93e98 (diff)
downloadopenttd-563eac90ca20eddd6d359142af36e7387660dff5.tar.xz
(svn r1866) -Fix: Intercepted generated maps with 0 towns on it. Currently just an
error() is called, some more graceful handling should be implemented later.
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c
index 48e1c9b00..37af61068 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1444,7 +1444,7 @@ static void ScenEditTownGenWndProc(Window *w, WindowEvent *e)
HandleButtonClick(w, 4);
_generating_world = true;
- t = CreateRandomTown();
+ t = CreateRandomTown(20);
_generating_world = false;
if (t != NULL)
ScrollMainWindowToTile(t->xy);