Changeset - r10141:0682abf7b844
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-09-14 20:11:34
rubidium@openttd.org
(svn r14327) -Fix [FS#2251]: if you rename a town before building something and build something near that town your company would be called "<old townname> Transport".
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/players.cpp
Show inline comments
 
@@ -337,7 +337,7 @@ static void GenerateCompanyName(Player *
 

	
 
	t = ClosestTownFromTile(tile, (uint)-1);
 

	
 
	if (IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) {
 
	if (t->name == NULL && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) {
 
		str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_PLAYERNAME_START;
 
		strp = t->townnameparts;
 

	
0 comments (0 inline, 0 general)