mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
This commit is contained in:
@@ -746,7 +746,7 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
|
||||
DeleteName(str);
|
||||
y += 10;
|
||||
|
||||
SetDParam(0, _network_player_info[_selected_company_item].inaugurated_year + 1920);
|
||||
SetDParam(0, _network_player_info[_selected_company_item].inaugurated_year + MAX_YEAR_BEGIN_REAL);
|
||||
DrawString(x, y, STR_NETWORK_INAUGURATION_YEAR, 2); // inauguration year
|
||||
y += 10;
|
||||
|
||||
|
Reference in New Issue
Block a user