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:
parent
0460b6e516
commit
d1ec6514b0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue