fixed scrolling to save properly

This commit is contained in:
Dave White 2003-10-06 12:08:00 +00:00
parent cf11d1dcc2
commit e55af62765
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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())));
}
}