directly abort more draw operations when map is empty
This commit is contained in:
parent
be91d1d5ce
commit
607057e867
1 changed files with 5 additions and 1 deletions
|
@ -937,6 +937,10 @@ bool display::draw_init()
|
|||
{
|
||||
bool changed = false;
|
||||
|
||||
if (map_.empty()) {
|
||||
return changed;
|
||||
}
|
||||
|
||||
if(benchmark) {
|
||||
redraw_background_ = true;
|
||||
invalidateAll_ = true;
|
||||
|
@ -962,7 +966,7 @@ bool display::draw_init()
|
|||
invalidateAll_ = true;
|
||||
}
|
||||
|
||||
if(invalidateAll_ && !map_.empty()) {
|
||||
if(invalidateAll_) {
|
||||
INFO_DP << "draw() with invalidateAll\n";
|
||||
gamemap::location topleft;
|
||||
gamemap::location bottomright;
|
||||
|
|
Loading…
Add table
Reference in a new issue