diff --git a/src/actions/move.cpp b/src/actions/move.cpp index 97798013a2fb..2c37d8b8768f 100644 --- a/src/actions/move.cpp +++ b/src/actions/move.cpp @@ -136,7 +136,7 @@ void move_unit_spectator::set_unit(const unit_map::const_iterator &u) } -bool get_village(const map_location& loc, int side, int *action_timebonus) +bool get_village(const map_location& loc, int side, int *action_timebonus, bool fire_event) { std::vector &teams = *resources::teams; team *t = unsigned(side - 1) < teams.size() ? &teams[side - 1] : NULL; @@ -174,7 +174,7 @@ bool get_village(const map_location& loc, int side, int *action_timebonus) if (resources::screen != NULL) { resources::screen->invalidate(loc); } - return t->get_village(loc, old_owner_side); + return t->get_village(loc, old_owner_side, fire_event); } return false; diff --git a/src/actions/move.hpp b/src/actions/move.hpp index e6df8c38911f..da20bc243410 100644 --- a/src/actions/move.hpp +++ b/src/actions/move.hpp @@ -96,7 +96,7 @@ class move_unit_spectator { * Makes it so the village at the given location is owned by the given side. * Returns true if getting the village triggered a mutating event. */ -bool get_village(const map_location& loc, int side, int *time_bonus = NULL); +bool get_village(const map_location& loc, int side, int *time_bonus = NULL, bool fire_event = true); /// Moves a unit across the board. /// And enters the synced context.