summaryrefslogtreecommitdiff
path: root/network_gui.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
commit0d3ccad29fb035fced3a1a87b7804fde8c4e94b1 (patch)
tree40cc27f619e175b8c9a80e13e6651c33b92144aa /network_gui.c
parent8aa76f306db00b81f14b53a736b6e30099258841 (diff)
downloadopenttd-0d3ccad29fb035fced3a1a87b7804fde8c4e94b1.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 'network_gui.c')
-rw-r--r--network_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_gui.c b/network_gui.c
index dd804e6e3..8289253bc 100644
--- a/network_gui.c
+++ b/network_gui.c
@@ -876,7 +876,7 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
DrawStringTruncated(x, y, STR_NETWORK_COMPANY_NAME, 2, trunc_width);
y += 10;
- SetDParam(0, _network_player_info[nd->company].inaugurated_year + MAX_YEAR_BEGIN_REAL);
+ SetDParam(0, BASE_YEAR + _network_player_info[nd->company].inaugurated_year);
DrawString(x, y, STR_NETWORK_INAUGURATION_YEAR, 2); // inauguration year
y += 10;