allowing fps_max 0 is probably ok

This commit is contained in:
jenz 2026-03-21 12:22:38 +01:00
parent 940b53fffc
commit 4c69c978b2

View File

@ -43,6 +43,9 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes
if (result != ConVarQuery_Okay)
LogError("Could not query ConVar \"cvarName\" for %N", client);
//fps_max 0 is probably acceptable
if (StringToInt(cvarValue) == 0)
return;
if (StringToInt(cvarValue) < 58)
KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)");