mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1051) -Fix: [Network] New Company button is disabled when there is no more
space for a new company
This commit is contained in:
parent
4d7c2e9d90
commit
c0247e66e8
@ -656,6 +656,9 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
|
|||||||
} else
|
} else
|
||||||
w->disabled_state = 0;
|
w->disabled_state = 0;
|
||||||
|
|
||||||
|
if (_network_lobby_company_count == MAX_PLAYERS)
|
||||||
|
w->disabled_state |= (1<<8);
|
||||||
|
|
||||||
DrawWindowWidgets(w);
|
DrawWindowWidgets(w);
|
||||||
|
|
||||||
SetDParam(0, _str_game_name);
|
SetDParam(0, _str_game_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user