(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)
replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
truelight 20 years ago
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…
Cancel
Save