mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1187) -Fix: [Network] You can no longer join as spectator a game with no
companies (a lot of code can simply not handle it)
This commit is contained in:
parent
5f25a0788a
commit
9b237345d1
@ -643,6 +643,10 @@ static void NetworkLobbyWindowWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
if (_network_lobby_company_count == MAX_PLAYERS)
|
||||
w->disabled_state |= (1<<8);
|
||||
/* You can not join a server as spectator when it has no companies active..
|
||||
it causes some nasty crashes */
|
||||
if (_network_lobby_company_count == 0)
|
||||
w->disabled_state |= (1<<9);
|
||||
|
||||
DrawWindowWidgets(w);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user