Changeset 26 for trunk/Classes/preferences.cpp
- Timestamp:
- 2010-05-28 07:39:52 (2 years ago)
- File:
-
- 1 edited
-
trunk/Classes/preferences.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Classes/preferences.cpp
r23 r26 241 241 int idle_anim_rate() 242 242 { 243 return lexical_cast_default<int>(get("idle_anim_rate"), 0);243 return lexical_cast_default<int>(get("idle_anim_rate"), -20); 244 244 } 245 245 … … 378 378 preferences::set("turn_bell", "no"); 379 379 sound::stop_bell(); 380 if(!music_on() && !sound_on() && !UI_sound_on())381 sound::close_sound();380 // if(!music_on() && !sound_on() && !UI_sound_on()) 381 // sound::close_sound(); 382 382 } 383 383 return true; … … 402 402 preferences::set("UI_sound", "no"); 403 403 sound::stop_UI_sound(); 404 if(!music_on() && !sound_on() && !turn_bell())405 sound::close_sound();404 // if(!music_on() && !sound_on() && !turn_bell()) 405 // sound::close_sound(); 406 406 } 407 407 return true; … … 430 430 preferences::set("sound", "no"); 431 431 sound::stop_sound(); 432 if(!music_on() && !turn_bell() && !UI_sound_on())433 sound::close_sound();432 // if(!music_on() && !turn_bell() && !UI_sound_on()) 433 // sound::close_sound(); 434 434 } 435 435 return true; … … 454 454 } else if(music_on() && !ison) { 455 455 preferences::set("music", "no"); 456 if(!sound_on() && !turn_bell() && !UI_sound_on())457 sound::close_sound();458 else456 // if(!sound_on() && !turn_bell() && !UI_sound_on()) 457 // sound::close_sound(); 458 // else 459 459 sound::stop_music(); 460 460 } … … 511 511 int scroll_speed() 512 512 { 513 const int value = lexical_cast_in_range<int>(get("scroll"), 50, 1, 100);513 const int value = lexical_cast_in_range<int>(get("scroll"), 100, 1, 100); 514 514 scroll = value/100.0; 515 515
Note: See TracChangeset
for help on using the changeset viewer.