diff --git a/src/main.cpp b/src/main.cpp index 9ba436c..cb88d66 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,9 +61,12 @@ void init() if (GUI::checkbox("FPS", "general/fps/enabled")) Common::calculateFramerate(); - float speedhack = Settings::get("general/speedhack/value", 60.f); + float speedhack = Settings::get("general/speedhack/value", 1.f); if (GUI::inputFloat("##SpeedhackValue", &speedhack)) - Mod::get()->setSavedValue("general/speedhack/value", speedhack); + { + if(speedhack > 0) + Mod::get()->setSavedValue("general/speedhack/value", speedhack); + } if (GUI::shouldRender()) {