make sure to send last action before ending the scenario

The travis mp test failed. A possible cause could be that the [init_side] was not sended to the server if the scenario was ended because of a [endlevel] during a new side turn event. This commit attempts to fix that case.
This commit is contained in:
gfgtdf 2016-03-05 03:55:52 +01:00
parent d410c653f7
commit 08715b4229

View file

@ -168,6 +168,7 @@ void playsingle_controller::play_scenario_main_loop()
try {
play_turn();
if (is_regular_game_end()) {
turn_data_.send_data();
return;
}
gamestate_->player_number_ = 1;