(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
authortruelight
Mon, 13 Dec 2004 14:49:31 +0000
changeset 621 334872f978c3
parent 620 c9050bce280f
child 622 3da5b736ca84
(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
space for a new company
network_gui.c
--- a/network_gui.c	Mon Dec 13 14:43:41 2004 +0000
+++ b/network_gui.c	Mon Dec 13 14:49:31 2004 +0000
@@ -656,6 +656,9 @@
 		} else
 			w->disabled_state = 0;
 
+		if (_network_lobby_company_count == MAX_PLAYERS)
+			w->disabled_state |= (1<<8);
+
 		DrawWindowWidgets(w);
 
 		SetDParam(0, _str_game_name);