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
This commit is contained in:
parent
822ac93d4b
commit
4ba78e9d34
@ -67,7 +67,8 @@ namespace patches
|
|||||||
|
|
||||||
void set_client_dvar_from_server_stub(void* clientNum, void* cgameGlob, const char* dvar, const char* value)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user