Mercurial > hg > openttd
changeset 3847:b06ff0b26050 draft
(svn r4871) - Fixed off-by-one and added company color displaying in 'players' console command.
author | glx <glx@openttd.org> |
---|---|
date | Sun, 14 May 2006 23:01:11 +0000 |
parents | 36c2ae57fb58 |
children | 82bd3a0759d7 |
files | console_cmds.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/console_cmds.c +++ b/console_cmds.c @@ -1143,9 +1143,12 @@ NetworkPopulateCompanyInfo(); FOR_ALL_PLAYERS(p) { - if (!p->is_active) - continue; - IConsolePrintF(8, "#:%d Company Name: '%s' Year Founded: '%d' Money: '%d' Loan: '%d' Value: '%d'", p->index, _network_player_info[p->index].company_name, p->inaugurated_year + MAX_YEAR_BEGIN_REAL, p->player_money, p->current_loan, CalculateCompanyValue(p)); + char buffer[512]; + + if (!p->is_active) continue; + + GetString(buffer, STR_00D1_DARK_BLUE + _player_colors[p->index]); + IConsolePrintF(8, "#:%d(%s) Company Name: '%s' Year Founded: %d Money: %d Loan: %d Value: %d", p->index + 1, buffer, _network_player_info[p->index].company_name, p->inaugurated_year + MAX_YEAR_BEGIN_REAL, p->player_money, p->current_loan, CalculateCompanyValue(p)); } return true;