mirror of https://github.com/OpenTTD/OpenTTD
(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)release/0.4.5
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