summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-15 15:18:03 +0000
committerrubidium <rubidium@openttd.org>2006-08-15 15:18:03 +0000
commitc55962f8a2304535f2077f9d5d6dcdb11bf6323e (patch)
tree40cc27f619e175b8c9a80e13e6651c33b92144aa /console_cmds.c
parentdc54e608e36145deab60dea2cbe08517b28e54c0 (diff)
downloadopenttd-c55962f8a2304535f2077f9d5d6dcdb11bf6323e.tar.xz
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index ff3504d8b..d006af5b7 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -1174,7 +1174,7 @@ DEF_CONSOLE_CMD(ConPlayers)
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 (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),
+ p->index + 1, buffer, _network_player_info[p->index].company_name, BASE_YEAR + p->inaugurated_year, 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],