mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-07 06:39:08 +00:00
(svn r10787) -Fix r10755: _total_towns was not increased when placing town manually in scenario editor
This commit is contained in:
parent
ce9cba5edb
commit
8cea2059a5
@ -47,6 +47,7 @@ DEFINE_OLD_POOL_GENERIC(Town, Town)
|
|||||||
|
|
||||||
Town::Town(TileIndex tile)
|
Town::Town(TileIndex tile)
|
||||||
{
|
{
|
||||||
|
if (tile != 0) _total_towns++;
|
||||||
this->xy = tile;
|
this->xy = tile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1354,8 +1355,6 @@ static void DoCreateTown(Town *t, TileIndex tile, uint32 townnameparts, TownSize
|
|||||||
extern int _nb_orig_names;
|
extern int _nb_orig_names;
|
||||||
int x, i;
|
int x, i;
|
||||||
|
|
||||||
_total_towns++;
|
|
||||||
|
|
||||||
t->xy = tile;
|
t->xy = tile;
|
||||||
t->num_houses = 0;
|
t->num_houses = 0;
|
||||||
t->time_until_rebuild = 10;
|
t->time_until_rebuild = 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user