summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 14:49:31 +0000
committertruelight <truelight@openttd.org>2004-12-13 14:49:31 +0000
commit02837936554a3ac70a73643a375c078f9b41575b (patch)
treeeb295deba1d823d3a0c54c31a32015070945ff42
parent376868b04077cca6ac7336544cfa45978af18166 (diff)
downloadopenttd-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.c3
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);