Catch end_turn_exception for networked clients.

This commit is contained in:
Alexander van Gessel 2008-10-27 00:30:55 +01:00
parent 5d4fc94949
commit d0c10ac55b

View file

@ -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