The Battle for Wesnoth  1.19.5+dev
Classes | Functions
actions::undo Namespace Reference

Classes

struct  dismiss_action
 
struct  move_action
 
struct  recall_action
 
struct  recruit_action
 
struct  auto_shroud_action
 
struct  update_shroud_action
 

Functions

static void reset_adjacent (bool &halo_adjacent, unit_map &units, const map_location &loc)
 Reset halo of adjacent units when undo move. More...
 

Function Documentation

◆ reset_adjacent()

static void actions::undo::reset_adjacent ( bool &  halo_adjacent,
unit_map units,
const map_location loc 
)
static

Reset halo of adjacent units when undo move.

Definition at line 61 of file undo_move_action.cpp.

References unit_map::end(), unit_map::find(), get_adjacent_tiles(), and i.

Referenced by actions::undo::move_action::undo().