allowing fps_max 0 is probably ok
This commit is contained in:
parent
940b53fffc
commit
4c69c978b2
@ -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)");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user