fov: fix check
All checks were successful
check-formatting / check-formatting (push) Successful in 4m9s

This commit is contained in:
2025-07-02 15:18:13 +02:00
parent 8f18f193eb
commit 965fffdcf3

View File

@ -1,16 +1,16 @@
#include <std_include.hpp>
#include "loader/component_loader.hpp"
#include "game/dvars.hpp"
#include <utils/hook.hpp>
#include <utils/string.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",
dvar_name);