Changeset - r20163:d7b11fde4fd3
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-04-03 20:24:10
frosch@openttd.org
(svn r25140) -Fix [FS#5519]: Towns are build as OWNER_TOWN, so they also need to be removed as OWNER_TOWN.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1847,7 +1847,10 @@ static Town *CreateRandomTown(uint attem
 
		/* if the population is still 0 at the point, then the
 
		 * placement is so bad it couldn't grow at all */
 
		if (t->cache.population > 0) return t;
 

	
 
		Backup<CompanyByte> cur_company(_current_company, OWNER_TOWN, FILE_LINE);
 
		CommandCost rc = DoCommand(t->xy, t->index, 0, DC_EXEC, CMD_DELETE_TOWN);
 
		cur_company.Restore();
 
		assert(rc.Succeeded());
 

	
 
		/* We already know that we can allocate a single town when
0 comments (0 inline, 0 general)