summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-05-16 16:30:40 +0000
committerglx <glx@openttd.org>2006-05-16 16:30:40 +0000
commit2233ec08364ab1864355fef10eab30ee5db2c2f6 (patch)
tree7435a28dfa86b07958d4bcd59e57badfcc5ffb5a /console_cmds.c
parent2fd4e554b88783bc49307ce7d071a26eed78fe18 (diff)
downloadopenttd-2233ec08364ab1864355fef10eab30ee5db2c2f6.tar.xz
(svn r4889) - Codechange: added vehicle count in 'players' console command
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index e8c567311..1afda2d2e 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1148,7 +1148,12 @@ DEF_CONSOLE_CMD(ConPlayers)
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: %" OTTD_PRINTF64 "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));
+ IConsolePrintF(8, "#:%d(%s) Company Name: '%s' Year Founded: %d Money: %d Loan: %d Value: %" OTTD_PRINTF64 "d (T:%d, R:%d, P:%d, S:%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),
+ /* trains */ _network_player_info[p->index].num_vehicle[0],
+ /* lorry + bus */ _network_player_info[p->index].num_vehicle[1] + _network_player_info[p->index].num_vehicle[2],
+ /* planes */ _network_player_info[p->index].num_vehicle[3],
+ /* ships */ _network_player_info[p->index].num_vehicle[4]);
}
return true;