Remove an unused variable.

This commit is contained in:
Mark de Wever 2009-02-08 22:17:10 +00:00
parent 9c7884f6fb
commit bf36e2031b
3 changed files with 5 additions and 7 deletions

View File

@ -415,7 +415,7 @@ void game_display::redraw_units(const std::vector<map_location>& invalidated_uni
//simulate_delay += 1;
}
if (temp_unit_ && temp_unit_loc_ == loc) {
temp_unit_->redraw_unit(*this, temp_unit_loc_, true);
temp_unit_->redraw_unit(*this, temp_unit_loc_);
//simulate_delay += 1;
}
}

View File

@ -1791,7 +1791,7 @@ void unit::set_facing(map_location::DIRECTION dir) {
// Else look at yourself (not available so continue to face the same direction)
}
void unit::redraw_unit(game_display& disp, const map_location& loc, const bool fake)
void unit::redraw_unit(game_display& disp, const map_location& loc)
{
const gamemap & map = disp.get_map();
if(!loc.valid() || hidden_ || disp.fogged(loc)

View File

@ -197,11 +197,9 @@ public:
/** A SDL surface, ready for display for place where we need a still-image of the unit. */
const surface still_image(bool scaled = false) const;
/**
* draw a unit, fake is used for temporary unit not in unit_map (so we can
* skip functions assuming that)
*/
void redraw_unit(game_display& disp, const map_location& loc, const bool fake = false);
/** draw a unit. */
void redraw_unit(game_display& disp, const map_location& loc);
/** Clear unit_halo_ */
void clear_haloes();