Skip to content

Commit

Permalink
fix: use epsilon check for 'tickrate is not 60' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlugg committed Jun 11, 2023
1 parent ac0f0a3 commit 387f212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/Hud/CheatWarn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static Cheat g_cheats[] = {
}, "mobile portals enabled", "set 'sv_allow_mobile_portals 0'" },

{ +[]() {
return *engine->interval_per_tick != 1.0f / 60.0f;
return fabsf(*engine->interval_per_tick - 1.0f / 60.0f) < 0.00001f;
}, "tickrate is not 60", "remove '-tickrate' from the game launch options" },
};

Expand Down

0 comments on commit 387f212

Please sign in to comment.