CVar caching is no longer needed.

This commit is contained in:
Mari the Deer 2022-12-29 13:20:08 +01:00
commit 2b41ba0225
12 changed files with 41 additions and 52 deletions

View file

@ -8,7 +8,6 @@ extend Class Demolitionist
private void UpdateTags()
{
if ( !tagcolor ) tagcolor = CVar.GetCVar('swwm_tagcolor',player);
static const String colname[] =
{
"",
@ -28,7 +27,7 @@ extend Class Demolitionist
"Black",
"Rust"
};
int idx = tagcolor.GetInt();
int idx = CVar.GetCVar('swwm_tagcolor',player).GetInt();
if ( (idx < 0) || (idx >= colname.Size()) ) idx = 0;
if ( idx != oldtagcolor )
A_ChangeModel("",0,"","",0,"models","DemoTags"..colname[idx]..".png",CMDL_USESURFACESKIN,-1);