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
commitc0247e66e892bc14bb2452f87402a432564b4204 (patch)
treeeb295deba1d823d3a0c54c31a32015070945ff42
parent4d7c2e9d90caaec42962e57b8700b170c000607c (diff)
downloadopenttd-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.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);