File diff r20745:b1ebcc10c74a → r20746:f138a826b65b
src/town_cmd.cpp
Show inline comments
 
@@ -1667,7 +1667,7 @@ CommandCost CmdFoundTown(TileIndex tile,
 
			return CommandCost(EXPENSES_OTHER);
 
		}
 

	
 
		_generating_world = true;
 
		Backup<bool> old_generating_world(_generating_world, true, FILE_LINE);
 
		UpdateNearestTownForRoadTiles(true);
 
		Town *t;
 
		if (random) {
 
@@ -1682,7 +1682,7 @@ CommandCost CmdFoundTown(TileIndex tile,
 
			DoCreateTown(t, tile, townnameparts, size, city, layout, true);
 
		}
 
		UpdateNearestTownForRoadTiles(false);
 
		_generating_world = false;
 
		old_generating_world.Restore();
 

	
 
		if (t != NULL && !StrEmpty(text)) {
 
			t->name = strdup(text);