1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-18 20:19:11 +00:00

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

This commit is contained in:
truelight
2006-08-22 20:56:08 +00:00
parent 5fd9aeb12b
commit 3cdabcbbac

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) {