Skip to content

Commit

Permalink
make sure to send last action before ending the scenario
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gfgtdf committed Mar 5, 2016
1 parent d410c65 commit 08715b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playsingle_controller.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 08715b4

Please sign in to comment.