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
91de938d6e
commit
15637abf91
@ -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