CVar caching is no longer needed.
This commit is contained in:
parent
9f529afb3c
commit
2b41ba0225
12 changed files with 41 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue