mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 14:25:36 +00:00
avoid some useless redraws
This commit is contained in:
parent
bae01055d7
commit
0870dd2299
@ -1511,6 +1511,8 @@ void display::draw_tile(int x, int y)
|
||||
update_rect(xpos,ypos,zoom_,zoom_);
|
||||
//redrawing is done
|
||||
redrawn.erase(loc);
|
||||
//avoid useless redrawin
|
||||
invalidated_.erase(loc);
|
||||
}
|
||||
|
||||
void display::draw_enemies_reach(unsigned int num, int xloc, int yloc)
|
||||
|
Loading…
x
Reference in New Issue
Block a user