changed the default setting for the turn bell to on
simplify the scroll speed setter/getter
This commit is contained in:
parent
11efdbe595
commit
fd840b8b07
3 changed files with 18 additions and 24 deletions
18
changelog
18
changelog
|
@ -1,14 +1,16 @@
|
|||
Version 1.3.11+svn:
|
||||
* sound:
|
||||
* added new music track, "Vengeful Pursuit" by Jeremy Nicoll.
|
||||
* WML engine:
|
||||
* New standard unit filter keys :
|
||||
- defense: chance to be hit on current terrain by normal weapons
|
||||
- movement_cost: movement cost on current terrain
|
||||
* miscellaneous and bug fixes:
|
||||
* fix a compilation bug on Windows (usleep not defined)
|
||||
* language and i18n:
|
||||
* updated translations: Swedish
|
||||
* miscellaneous and bug fixes:
|
||||
* fix a compilation bug on Windows (usleep not defined)
|
||||
* sound:
|
||||
* added new music track, "Vengeful Pursuit" by Jeremy Nicoll.
|
||||
* user interface:
|
||||
* changed the default setting for the turn bell to on
|
||||
* WML engine:
|
||||
* New standard unit filter keys:
|
||||
- defense: chance to be hit on current terrain by normal weapons
|
||||
- movement_cost: movement cost on current terrain
|
||||
|
||||
Version 1.3.11:
|
||||
* campaigns
|
||||
|
|
|
@ -3,6 +3,10 @@ changes may be omitted). For a complete list of changes, see the main
|
|||
changelog: http://svn.gna.org/viewcvs/*checkout*/wesnoth/trunk/changelog
|
||||
|
||||
Version 1.3.11+svn:
|
||||
* User interface
|
||||
* Changed the default setting for the turn bell to on.
|
||||
|
||||
Version 1.3.11:
|
||||
* Campaigns
|
||||
* Fix the recall list duplication bug.
|
||||
* Eastern Invasion
|
||||
|
|
|
@ -303,7 +303,7 @@ void set_UI_volume(int vol)
|
|||
|
||||
bool turn_bell()
|
||||
{
|
||||
return get("turn_bell") == "yes";
|
||||
return utils::string_bool(get("turn_bell"), true);
|
||||
}
|
||||
|
||||
bool set_turn_bell(bool ison)
|
||||
|
@ -414,27 +414,15 @@ namespace {
|
|||
|
||||
int scroll_speed()
|
||||
{
|
||||
static const int default_value = 50;
|
||||
int value = 0;
|
||||
const string_map::const_iterator i = prefs.values.find("scroll");
|
||||
if(i != prefs.values.end() && i->second.empty() == false) {
|
||||
value = atoi(i->second.c_str());
|
||||
}
|
||||
|
||||
if(value < 1 || value > 100) {
|
||||
value = default_value;
|
||||
}
|
||||
|
||||
const int value = lexical_cast_in_range<int>(get("scroll"), 50, 1, 100);
|
||||
scroll = value/100.0;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
void set_scroll_speed(int new_speed)
|
||||
void set_scroll_speed(const int new_speed)
|
||||
{
|
||||
std::stringstream stream;
|
||||
stream << new_speed;
|
||||
prefs["scroll"] = stream.str();
|
||||
prefs["scroll"] = lexical_cast<std::string>(new_speed);
|
||||
scroll = new_speed / 100.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue