editor2: do not scroll to 0,0 on map reload

This commit is contained in:
Tomasz Śniatowski 2008-10-13 20:04:40 +01:00
parent 6e2ab29235
commit cd1faedd3f

View File

@ -143,10 +143,6 @@ display::~display()
void display::reload_map() void display::reload_map()
{ {
builder_.reload_map(); builder_.reload_map();
SDL_Rect m = map_area();
if (!hex_clicked_on(m.x + m.w, m.y + m.h).valid()) {
scroll_to_tile(gamemap::location(0, 0), WARP);
}
} }
const SDL_Rect& display::max_map_area() const const SDL_Rect& display::max_map_area() const