Merge pull request #4356 from GregorR/netplay-alive-server-spectating

Fix to the netplay_is_alive function when server isn't playing
This commit is contained in:
Twinaphex 2017-01-03 02:42:26 +01:00 committed by GitHub
commit 503ccfbc42

View File

@ -50,7 +50,8 @@ static bool netplay_is_alive(void)
{
if (!netplay_data)
return false;
return !!netplay_data->connected_players;
return (netplay_data->is_server && !!netplay_data->connected_players) ||
(!netplay_data->is_server && netplay_data->self_mode >= NETPLAY_CONNECTION_CONNECTED);
}
/**