From 15637abf9104705859c78bdbb94d3980f193a618 Mon Sep 17 00:00:00 2001 From: mjkzy Date: Mon, 4 Jul 2022 22:30:48 -0500 Subject: [PATCH] fix cg fov check "I discovered if a server is modified to send a server command to change the fov that is like "Cg_FoV" this check is rendered useless." credit to @diamante0018 --- src/client/component/patches.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index ef6a6b7d..9ea0deb6 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -67,7 +67,8 @@ namespace patches void set_client_dvar_from_server_stub(void* clientNum, void* cgameGlob, const char* dvar, const char* value) { - if (dvar == "cg_fov"s || dvar == "cg_fovMin"s) + const auto dvar_lowercase = utils::string::to_lower(dvar); + if (dvar_lowercase == "cg_fov"s || dvar_lowercase == "cg_fovMin"s) { return; }