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
commit77d26759e3e4f0ada2298d8e89e64380592537d1 (patch)
tree822211e1a18fb70fe4220e3dc0f3c2f08de03141 /main_gui.c
parent58c46bed4072a563f037278d5f023c0bbf3c83a7 (diff)
downloadopenttd-77d26759e3e4f0ada2298d8e89e64380592537d1.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);