(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor

This commit is contained in:
glx 2007-08-04 23:35:27 +00:00
parent ce9cba5edb
commit 8cea2059a5
1 changed files with 1 additions and 2 deletions

View File

@ -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, TileIndex tile, uint32 townnameparts, TownSize
extern int _nb_orig_names;
int x, i;
_total_towns++;
t->xy = tile;
t->num_houses = 0;
t->time_until_rebuild = 10;