Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnut committed Jan 29, 2024
1 parent d38d078 commit 5540007
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ void init()
if (GUI::checkbox("FPS", "general/fps/enabled"))
Common::calculateFramerate();

float speedhack = Settings::get<float>("general/speedhack/value", 60.f);
float speedhack = Settings::get<float>("general/speedhack/value", 1.f);
if (GUI::inputFloat("##SpeedhackValue", &speedhack))
Mod::get()->setSavedValue<float>("general/speedhack/value", speedhack);
{
if(speedhack > 0)
Mod::get()->setSavedValue<float>("general/speedhack/value", speedhack);
}

if (GUI::shouldRender())
{
Expand Down

0 comments on commit 5540007

Please sign in to comment.