change invalidate_animations_location to pass by ref in game_display too

This commit is contained in:
Tomasz Śniatowski 2008-06-18 20:12:48 +01:00
parent 2b285a5af2
commit 3111f85b10
2 changed files with 2 additions and 2 deletions

View file

@ -900,7 +900,7 @@ bool game_display::invalidate(const gamemap::location& loc)
return false;
}
void game_display::invalidate_animations_location(gamemap::location loc) {
void game_display::invalidate_animations_location(const gamemap::location& loc) {
if (map_.is_village(loc)) {
const int owner = player_teams::village_owner(loc);
if (owner >= 0 && flags_[owner].need_update()

View file

@ -153,7 +153,7 @@ protected:
/**
* Extra game per-location invalidation (village ownership)
*/
void invalidate_animations_location(gamemap::location loc);
void invalidate_animations_location(const gamemap::location& loc);
virtual void draw_minimap_units();