From 91fad282a0411b308053e73d54da37350507c430 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Fri, 15 Aug 2025 03:00:33 +0300 Subject: [PATCH] Correct CConVar constructors --- public/tier1/convar.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/public/tier1/convar.h b/public/tier1/convar.h index bf0958bd..4ffaf145 100644 --- a/public/tier1/convar.h +++ b/public/tier1/convar.h @@ -1281,27 +1281,6 @@ public: BaseClass::Register( name, flags, help_string, value_info ); } - CConVar( const char *name, uint64 flags, const char *help_string, const T &default_value, bool min, const T &minValue, bool max, const T &maxValue, FnTypedChangeCallback_t cb = nullptr ) - : BaseClass() - { - Assert( name ); - - BaseClass::Init( ConVarRef(), TranslateConVarType() ); - - ConVarValueInfo_t value_info( TranslateConVarType() ); - value_info.SetDefaultValue( default_value ); - - if(min) - value_info.SetMinValue( minValue ); - - if(max) - value_info.SetMaxValue( maxValue ); - - value_info.SetCallback( cb ); - - BaseClass::Register( name, flags, help_string, value_info ); - } - CConVar( const char *name, uint64 flags, const char *help_string, const T &default_value, bool min, const T &minValue, bool max, const T &maxValue, FnTypedChangeCallback_t cb = nullptr, FnTypedFilterCallback_t filter_cb = nullptr ) : BaseClass() {