fix linger mode when ending the scenario in end_turn event
I am not really sure whether this is actually needed or whether it actually worked before for some other reason, in any case the new code is simpler and safer.
This commit is contained in:
parent
6ac17427c6
commit
cda1d30809
1 changed files with 1 additions and 3 deletions
|
@ -226,9 +226,7 @@ void playsingle_controller::play_some()
|
|||
}
|
||||
|
||||
if (gamestate().in_phase(game_data::GAME_ENDED)) {
|
||||
if(!get_end_level_data().transient.linger_mode || get_teams().empty() || video::headless()) {
|
||||
end_turn_requested_ = true;
|
||||
}
|
||||
end_turn_requested_ = !get_end_level_data().transient.linger_mode || get_teams().empty() || video::headless();
|
||||
maybe_linger();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue