add a safety check when executing gotos, make sure not lingering

I observed this in 1.12.1+dev mp campaign test somehow... hard to
reproduce but this patch may prevent such a problem, with no
downside.
This commit is contained in:
Chris Beck 2015-03-06 19:54:43 -05:00
parent bca4894fa0
commit f68b05cc63

View file

@ -181,7 +181,9 @@ void playmp_controller::play_human_turn(){
command_disabled_resetter reset_commands;
int cur_ticks = SDL_GetTicks();
show_turn_dialog();
execute_gotos();
if (!linger_) {
execute_gotos();
}
if (!linger_ || is_host_) {
end_turn_enable(true);