fix #12943, suggested by silene after we finally managed to isolate its cause

This commit is contained in:
András Salamon 2005-05-05 22:24:40 +00:00
parent aa63731978
commit 45eafeb4d9
3 changed files with 3 additions and 3 deletions

View File

@ -50,6 +50,7 @@ CVS HEAD:
* Turkish
* slow now affects units with 2 or more attacks (not just 1 remaining)
* slow now works with berserk and is cumulative across berserk rounds
* fix replays with idle_ai, as seen in user scenario Rebellion (#12943)
* various bug fixes and code cleanups
Version 0.9.1:

View File

@ -877,9 +877,6 @@ void ai::do_move()
move_leader_after_recruit(enemy_dstsrc);
}
}
recorder.end_turn();
sync_network();
}
bool ai::do_combat(std::map<gamemap::location,paths>& possible_moves, const move_map& srcdst, const move_map& dstsrc, const move_map& enemy_srcdst, const move_map& enemy_dstsrc)

View File

@ -645,6 +645,8 @@ redo_turn:
ai_interface::info ai_info(gui,map,gameinfo,units,teams,player_number,status,turn_data);
util::scoped_ptr<ai_interface> ai_obj(create_ai(team_it->ai_algorithm(),ai_info));
ai_obj->play_turn();
recorder.end_turn();
ai_obj->sync_network();
gui.recalculate_minimap();
clear_shroud(gui,status,map,gameinfo,units,teams,player_number-1);