Catch end_turn_exception for networked clients.
This commit is contained in:
parent
5d4fc94949
commit
d0c10ac55b
1 changed files with 7 additions and 1 deletions
|
@ -124,7 +124,13 @@ void playmp_controller::play_side(const unsigned int team_index, bool save){
|
|||
}
|
||||
}
|
||||
} else if(current_team().is_network()) {
|
||||
play_network_turn();
|
||||
try{
|
||||
play_network_turn();
|
||||
} catch(end_turn_exception& end_turn) {
|
||||
if (end_turn.redo == team_index) {
|
||||
player_type_changed_ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (player_type_changed_);
|
||||
//keep looping if the type of a team (human/ai/networked) has changed mid-turn
|
||||
|
|
Loading…
Add table
Reference in a new issue