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:
parent
b72ca74f3e
commit
61f212a26c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue