directly abort more draw operations when map is empty

This commit is contained in:
Ali El Gariani 2007-11-05 23:34:54 +00:00
parent be91d1d5ce
commit 607057e867

View file

@ -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;