Changeset - r4355:9a43d8bb6180
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2006-08-22 20:56:08
truelight@openttd.org
(svn r6056) -Codechange: don't use a loop what can be done with a simple wrapper
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
town_cmd.c
Show inline comments
 
@@ -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) {
0 comments (0 inline, 0 general)