Author: ilor
Date: Mon Oct 13 21:04:40 2008
New Revision: 30137
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30137&view=rev
Log:
editor2: do not scroll to 0,0 on map reload
Modified:
trunk/src/display.cpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=30137&r1=30136&r2=30137&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Mon Oct 13 21:04:40 2008
@@ -143,10 +143,6 @@
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
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits