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:
parent
d410c653f7
commit
08715b4229
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue