diff options
author | truelight <truelight@openttd.org> | 2004-12-13 14:49:31 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-13 14:49:31 +0000 |
commit | c0247e66e892bc14bb2452f87402a432564b4204 (patch) | |
tree | eb295deba1d823d3a0c54c31a32015070945ff42 | |
parent | 4d7c2e9d90caaec42962e57b8700b170c000607c (diff) | |
download | openttd-c0247e66e892bc14bb2452f87402a432564b4204.tar.xz |
(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
space for a new company
-rw-r--r-- | network_gui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/network_gui.c b/network_gui.c index db50a7964..d30bd9517 100644 --- a/network_gui.c +++ b/network_gui.c @@ -656,6 +656,9 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e) } else w->disabled_state = 0; + if (_network_lobby_company_count == MAX_PLAYERS) + w->disabled_state |= (1<<8); + DrawWindowWidgets(w); SetDParam(0, _str_game_name); |