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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user