summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-05-15 23:08:04 +0000
committerglx <glx@openttd.org>2006-05-15 23:08:04 +0000
commitb6006511d31e2246dc0438bd19815b7b1e54e6c7 (patch)
treeed3cad19a3c43eede48e9a326b4069a003764ba0
parentadb1657ad7a12f092cdddb863a8b8b7cc7177250 (diff)
downloadopenttd-b6006511d31e2246dc0438bd19815b7b1e54e6c7.tar.xz
(svn r4876) - Fix: company value is an int64, so display it correctly in 'players' console command
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index de040130b..e8c567311 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1148,7 +1148,7 @@ 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: %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", 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;