Changeset - r7410:124257ce5b4c
[Not reviewed]
master
0 1 0
glx - 17 years ago 2007-08-04 23:35:27
glx@openttd.org
(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -47,6 +47,7 @@ DEFINE_OLD_POOL_GENERIC(Town, Town)
 

	
 
Town::Town(TileIndex tile)
 
{
 
	if (tile != 0) _total_towns++;
 
	this->xy = tile;
 
}
 

	
 
@@ -1354,8 +1355,6 @@ static void DoCreateTown(Town *t, TileIn
 
	extern int _nb_orig_names;
 
	int x, i;
 

	
 
	_total_towns++;
 

	
 
	t->xy = tile;
 
	t->num_houses = 0;
 
	t->time_until_rebuild = 10;
0 comments (0 inline, 0 general)