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 | 02837936554a3ac70a73643a375c078f9b41575b (patch) | |
tree | eb295deba1d823d3a0c54c31a32015070945ff42 | |
parent | 376868b04077cca6ac7336544cfa45978af18166 (diff) | |
download | openttd-02837936554a3ac70a73643a375c078f9b41575b.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); |