From 3e4d02afe1ef8fc9bbfee3df0e2012f3499e90ca Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 3 Jul 2023 14:32:52 +0200 Subject: [PATCH] Remove non-existent ConVar flag This flag doesn't exist in this game, and is also mapped to printableonly. The map order has also been corrected, from least significant to most significant. --- r5dev/public/iconvar.h | 4 ---- r5dev/tier1/cvar.cpp | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/r5dev/public/iconvar.h b/r5dev/public/iconvar.h index 9f533b19..6c81de4b 100644 --- a/r5dev/public/iconvar.h +++ b/r5dev/public/iconvar.h @@ -27,10 +27,6 @@ class CCommand; #define FCVAR_PRINTABLEONLY (1<<10) // This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ). -#define FCVAR_GAMEDLL_FOR_REMOTE_CLIENTS (1<<10) // When on concommands this allows remote clients to execute this cmd on the server. - // We are changing the default behavior of concommands to disallow execution by remote clients without - // this flag due to the number existing concommands that can lag or crash the server when clients abuse them. - #define FCVAR_UNLOGGED (1<<11) // If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log #define FCVAR_NEVER_AS_STRING (1<<12) // never try to print that cvar diff --git a/r5dev/tier1/cvar.cpp b/r5dev/tier1/cvar.cpp index 732fc6c6..e5c90cfc 100644 --- a/r5dev/tier1/cvar.cpp +++ b/r5dev/tier1/cvar.cpp @@ -414,7 +414,6 @@ ConVarFlags::ConVarFlags() : m_StringToFlags(DefLessFunc(const char*)) SET_CONVARFLAG(NOTIFY, "notify"); SET_CONVARFLAG(USERINFO, "userinfo"); SET_CONVARFLAG(PRINTABLEONLY, "printable_only"); - SET_CONVARFLAG(GAMEDLL_FOR_REMOTE_CLIENTS, "server_for_remote"); SET_CONVARFLAG(UNLOGGED, "unlogged"); SET_CONVARFLAG(NEVER_AS_STRING, "never_as_string"); SET_CONVARFLAG(REPLICATED, "replicated"); @@ -428,11 +427,11 @@ ConVarFlags::ConVarFlags() : m_StringToFlags(DefLessFunc(const char*)) SET_CONVARFLAG(RELOAD_TEXTURES, "reload_textures"); SET_CONVARFLAG(NOT_CONNECTED, "not_connected"); SET_CONVARFLAG(MATERIAL_SYSTEM_THREAD, "materialsystem_thread"); + SET_CONVARFLAG(MATERIAL_THREAD_MASK, "material_thread_mask"); SET_CONVARFLAG(ARCHIVE_PLAYERPROFILE, "playerprofile"); SET_CONVARFLAG(SERVER_CAN_EXECUTE, "server_can_execute"); SET_CONVARFLAG(SERVER_CANNOT_QUERY, "server_cannot_query"); SET_CONVARFLAG(CLIENTCMD_CAN_EXECUTE, "clientcmd_can_execute"); - SET_CONVARFLAG(MATERIAL_THREAD_MASK, "material_thread_mask"); } //-----------------------------------------------------------------------------