diff --git a/src/hacks/Misc.cpp b/src/hacks/Misc.cpp index 99b82b0b..3af1b013 100644 --- a/src/hacks/Misc.cpp +++ b/src/hacks/Misc.cpp @@ -233,9 +233,13 @@ void CreateMove() } #if ENABLE_VISUALS - +//Timer ussr{}; void DrawText() { + /*if (ussr.test_and_set(207000)) + { + g_ISurface->PlaySound() + }*/ if (god_mode) for (int i = 0; i < 40000; i++) { @@ -255,7 +259,7 @@ void DrawText() { // Get Color and set opacity to %50 colors::rgba_t gaybow = colors::FromHSL( - fabs(sin((g_GlobalVars->curtime / 2.0f) + (i / 1.41241))) * + fabs(sin((g_GlobalVars->curtime / 2.0f) + (i / 1.41241f))) * 360.0f, 0.85f, 0.9f); gaybow.a = .5; diff --git a/src/settings/SettingsIO.cpp b/src/settings/SettingsIO.cpp index df79c369..eac465f1 100755 --- a/src/settings/SettingsIO.cpp +++ b/src/settings/SettingsIO.cpp @@ -33,11 +33,9 @@ bool settings::SettingsWriter::saveTo(std::string path, bool only_changed) [](const pair_type &a, const pair_type &b) -> bool { return a.first.compare(b.first) < 0; }); - for (auto &v : all_registered) - { - write(v.first, v.second); - } + if (!v.first.empty()) + write(v.first, v.second); stream.close(); return true; } diff --git a/src/visual/menu/menu/objects/input/Checkbox.cpp b/src/visual/menu/menu/objects/input/Checkbox.cpp index 1b35c61f..ce1cca30 100755 --- a/src/visual/menu/menu/objects/input/Checkbox.cpp +++ b/src/visual/menu/menu/objects/input/Checkbox.cpp @@ -40,7 +40,7 @@ zerokernel::Checkbox::Checkbox(settings::Variable &option) void zerokernel::Checkbox::render() { - if (option) + if (option && *option) { renderBorder(*color_border); auto cb = bb.getContentBox();