editor2: do not scroll to 0,0 on map reload
This commit is contained in:
parent
6e2ab29235
commit
cd1faedd3f
1 changed files with 0 additions and 4 deletions
|
@ -143,10 +143,6 @@ display::~display()
|
|||
void display::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
|
||||
|
|
Loading…
Add table
Reference in a new issue