1
0
Fork 0

(svn r6056) -Codechange: don't use a loop what can be done with a simple wrapper

release/0.5
truelight 2006-08-22 20:56:08 +00:00
parent 5fd9aeb12b
commit 3cdabcbbac
1 changed files with 1 additions and 3 deletions

View File

@ -1063,9 +1063,7 @@ bool GenerateTowns(void)
// give it a last try, but now more aggressive
if (num == 0 && CreateRandomTown(10000, 0) == NULL) {
const Town* t;
FOR_ALL_TOWNS(t) return true;
if (GetTownArraySize() > 0) return true;
//XXX can we handle that more gracefully?
if (num == 0 && _game_mode != GM_EDITOR) {