# HG changeset patch # User truelight # Date 2004-12-13 14:49:31 # Node ID e8eb51f53aef2fd581bc9a7d86ba42bd370758d6 # Parent ba3fef1c573e6b229633e983a86fa144121d1a2e (svn r1051) -Fix: [Network] New Company button is disabled when there is no more space for a new company diff --git a/network_gui.c b/network_gui.c --- a/network_gui.c +++ b/network_gui.c @@ -656,6 +656,9 @@ static void NetworkLobbyWindowWndProc(Wi } else w->disabled_state = 0; + if (_network_lobby_company_count == MAX_PLAYERS) + w->disabled_state |= (1<<8); + DrawWindowWidgets(w); SetDParam(0, _str_game_name);