fixed bug where units could be invisible when first recruited (CVS internal)
This commit is contained in:
parent
81a43cbc97
commit
7f45ac3890
2 changed files with 6 additions and 0 deletions
|
@ -1728,6 +1728,10 @@ size_t move_unit(display* disp, const game_data& gamedata,
|
|||
|
||||
u.set_movement(moves_left);
|
||||
|
||||
if(disp != NULL) {
|
||||
disp->hide_unit(gamemap::location());
|
||||
}
|
||||
|
||||
units.erase(ui);
|
||||
ui = units.insert(std::pair<gamemap::location,unit>(steps.back(),u)).first;
|
||||
if(disp != NULL) {
|
||||
|
|
|
@ -1386,6 +1386,7 @@ void turn_info::undo()
|
|||
|
||||
gui_.hide_unit(u->first,true);
|
||||
unit_display::move_unit(gui_,map_,route,un,status_.get_time_of_day(),units_,teams_);
|
||||
gui_.hide_unit(gamemap::location());
|
||||
|
||||
units_.erase(u);
|
||||
un.set_movement(starting_moves);
|
||||
|
@ -1467,6 +1468,7 @@ void turn_info::redo()
|
|||
|
||||
gui_.hide_unit(u->first,true);
|
||||
unit_display::move_unit(gui_,map_,route,un,status_.get_time_of_day(),units_,teams_);
|
||||
gui_.hide_unit(gamemap::location());
|
||||
|
||||
units_.erase(u);
|
||||
un.set_movement(starting_moves);
|
||||
|
|
Loading…
Add table
Reference in a new issue