fix playmp_controller reading later network packages
in linger mode.
playmp_controller::play_linger_turn calls play_slice after processing
end_linger/[notify_next_scenario] which would (after 'fix chat in
[delay]' commit) then read more data from the network in particular data
for the next scenario which will then be lost.
(cherry-picked from commit f219b527e4
)
This commit is contained in:
parent
a4c1a7f659
commit
cd622afb0f
1 changed files with 5 additions and 3 deletions
|
@ -456,9 +456,11 @@ void playmp_controller::send_user_choice()
|
|||
|
||||
void playmp_controller::play_slice(bool is_delay_enabled)
|
||||
{
|
||||
process_network_data(true);
|
||||
//cannot use turn_data_.send_data() here.
|
||||
replay_sender_.sync_non_undoable();
|
||||
if(!linger_) {
|
||||
process_network_data(true);
|
||||
//cannot use turn_data_.send_data() here.
|
||||
replay_sender_.sync_non_undoable();
|
||||
}
|
||||
playsingle_controller::play_slice(is_delay_enabled);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue