mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 20:12:25 +00:00
editor2: do not scroll to 0,0 on map reload
This commit is contained in:
parent
6e2ab29235
commit
cd1faedd3f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user