fov: fix check
All checks were successful
check-formatting / check-formatting (push) Successful in 3m59s
All checks were successful
check-formatting / check-formatting (push) Successful in 3m59s
This commit is contained in:
parent
8f18f193eb
commit
7678c15526
@ -1,18 +1,20 @@
|
||||
#include <std_include.hpp>
|
||||
#include "loader/component_loader.hpp"
|
||||
#include "game/dvars.hpp"
|
||||
|
||||
#include <utils/hook.hpp>
|
||||
#include <utils/string.hpp>
|
||||
|
||||
#include <xorstr.hpp>
|
||||
|
||||
namespace fov {
|
||||
namespace {
|
||||
void dvar_set_from_string_by_name_from_source(const char* dvar_name,
|
||||
const char* string,
|
||||
game::DvarSetSource source) {
|
||||
if ((!std::strcmp(dvar_name, "cg_fov")) ||
|
||||
(!std::strcmp(dvar_name, "cg_fovScale"))) {
|
||||
if (utils::string::compare(dvar_name, "cg_fov") ||
|
||||
utils::string::compare(dvar_name, "cg_fovScale")) {
|
||||
game::Com_Printf(game::CON_CHANNEL_DONT_FILTER,
|
||||
"Not allowing the client to override dvar '%s'\n",
|
||||
xorstr_("Not allowing the client to override dvar '%s'\n"),
|
||||
dvar_name);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user