Disabled path highlighting diring AI or replay moves
This commit is contained in:
parent
748361c460
commit
734014ff61
2 changed files with 0 additions and 5 deletions
|
@ -468,10 +468,6 @@ gamemap::location ai_interface::move_unit_partial(location from, location to, st
|
|||
|
||||
if(show_move && unit_display::unit_visible_on_path(info_.disp,info_.map,steps,u_it->second,info_.state.get_time_of_day(),info_.units,info_.teams)) {
|
||||
|
||||
if(!info_.disp.fogged(from.x,from.y)) {
|
||||
info_.disp.set_paths(¤t_paths);
|
||||
}
|
||||
|
||||
info_.disp.scroll_to_tiles(from.x,from.y,to.x,to.y);
|
||||
|
||||
info_.disp.hide_unit(u_it->first,true);
|
||||
|
|
|
@ -787,7 +787,6 @@ bool do_replay(display& disp, const gamemap& map, const game_data& gameinfo,
|
|||
rt->second.steps.push_back(dst);
|
||||
|
||||
if(!replayer.is_skipping() && unit_display::unit_visible_on_path(disp,map,rt->second.steps,current_unit,state.get_time_of_day(),units,teams)) {
|
||||
disp.set_paths(&paths_list);
|
||||
|
||||
disp.scroll_to_tiles(src.x,src.y,dst.x,dst.y);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue