revert the little optimization of my last commit

(causes glitches with the border)

The new border system use the standard null location (-1,-1) at the
corner.  We probably need to change this, maybe something like (-1000,
-1000).  But need more checking, so I will see this later.
This commit is contained in:
Ali El Gariani 2007-08-06 02:58:49 +00:00
parent 0460b6e516
commit d1ec6514b0

View file

@ -997,7 +997,7 @@ const SDL_Rect& game_display::calculate_energy_bar(surface surf)
void game_display::invalidate(const gamemap::location& loc)
{
if(!invalidateAll_) {
if (loc.valid() && invalidated_.insert(loc).second) {
if (invalidated_.insert(loc).second) {
// Units can overlap adjacent tiles.
unit_map::iterator u = units_.find(loc);