Takes care of bug #6365

(if host changes in game creation screen, new host gets no
controls). Actually it's not a genuine fix, it just prevents changing
the host in game creation cause it doesn't make sense imo.
This commit is contained in:
Jörg Hinrichs 2006-09-06 21:52:42 +00:00
parent b72ca74f3e
commit 61f212a26c

View file

@ -1168,7 +1168,7 @@ void server::process_data_from_player_in_game(const network::connection sock, co
g->remove_player(sock);
g->describe_slots();
if(g->nplayers() == 0) {
if( (g->nplayers() == 0) || (needed && (!g->started())) ) {
//tell all other players the game is over,
//because the last player has left