Changeset - r17373:97cac55958cb
[Not reviewed]
master
0 1 0
smatz - 13 years ago 2011-02-22 22:21:20
smatz@openttd.org
(svn r22129) -Codechange: use simpler check to test if there any towns in the game
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -682,7 +682,7 @@ bool AfterLoadGame()
 
	}
 

	
 
	/* make sure there is a town in the game */
 
	if (_game_mode == GM_NORMAL && !ClosestTownFromTile(0, UINT_MAX)) {
 
	if (_game_mode == GM_NORMAL && Town::GetNumItems() == 0) {
 
		SetSaveLoadError(STR_ERROR_NO_TOWN_IN_SCENARIO);
 
		/* Restore the signals */
 
		ResetSignalHandlers();
0 comments (0 inline, 0 general)