mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-17 11:28:16 +00:00
fixed scrolling to save properly
This commit is contained in:
parent
cf11d1dcc2
commit
e55af62765
@ -691,7 +691,7 @@ void display::draw_unit_details(int x, int y, const gamemap::location& loc,
|
||||
|
||||
y += description_rect.h;
|
||||
|
||||
SDL_Surface* const profile = getImage(u.type().image_profile(),UNSCALED);
|
||||
SDL_Surface* const profile = getImage(u.type().image(),UNSCALED);
|
||||
|
||||
if(profile == NULL)
|
||||
return;
|
||||
|
@ -229,7 +229,7 @@ double get_scroll_speed()
|
||||
first_time = false;
|
||||
const string_map::const_iterator itor = prefs.values.find("scroll");
|
||||
if(itor != prefs.values.end()) {
|
||||
scroll = maximum<double>(1.0,minimum<double>(0.0,
|
||||
scroll = minimum<double>(1.0,maximum<double>(0.0,
|
||||
atof(itor->second.c_str())));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user