(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.
This commit is contained in:
celestar
2005-02-13 09:42:49 +00:00
parent 58c46bed40
commit 77d26759e3
3 changed files with 14 additions and 8 deletions

View File

@@ -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);