diff options
| author | iamgoofball <iamgoofball@gmail.com> | 2019-01-21 15:45:51 -0800 |
|---|---|---|
| committer | iamgoofball <iamgoofball@gmail.com> | 2019-01-21 15:45:51 -0800 |
| commit | a7a614482e379ad13f8e0ca1e7f3e31c33bb1c21 (patch) | |
| tree | f3c938a31e9697183ab5fd0c43567f4a1c6a331a /src/text_file_functions.cpp | |
| parent | debd386a7176327d481470621a7a3a65cd715f2e (diff) | |
final commit
Diffstat (limited to 'src/text_file_functions.cpp')
| -rw-r--r-- | src/text_file_functions.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index 6bc66d03..68d0a041 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -10,8 +10,8 @@ int AOApplication::read_blip_rate() { int result = configini->value("blip_rate", 2).toInt(); - if (result < 2) - return 2; + if (result < 1) + return 1; return result; } @@ -632,7 +632,7 @@ bool AOApplication::get_looping_sfx() bool AOApplication::get_objectmusic() { - QString result = configini->value("kill_music_on_object", "true").value<QString>(); + QString result = configini->value("kill_music_on_object", "false").value<QString>(); return result.startsWith("true"); } @@ -642,6 +642,13 @@ bool AOApplication::is_discord_enabled() return result.startsWith("true"); } +bool AOApplication::is_shakeandflash_enabled() +{ + QString result = configini->value("shakeandflash", "true").value<QString>(); + return result.startsWith("true"); +} + + bool AOApplication::get_casing_enabled() { QString result = configini->value("casing_enabled", "false").value<QString>(); |
