(svn r1518) -Fix: server issue where some company names were wrong

-Fix: Highscore troubles; accessing members of deleted window
This commit is contained in:
darkvater
2005-01-15 01:52:23 +00:00
parent 75474e5bf1
commit f9b5f704b1
25 changed files with 36 additions and 29 deletions

View File

@@ -1189,7 +1189,9 @@ void NetworkPopulateCompanyInfo(void)
ttd_strlcpy(_network_player_info[p->index].password, password, sizeof(_network_player_info[p->index].password));
// Grap the company name
GetString(_network_player_info[p->index].company_name, p->name_1);
SetDParam(0, p->name_1);
SetDParam(1, p->name_2);
GetString(_network_player_info[p->index].company_name, STR_JUST_STRING);
// Check the income
if (_cur_year - 1 == p->inaugurated_year)