CVar caching is no longer needed.
This commit is contained in:
parent
9f529afb3c
commit
2b41ba0225
12 changed files with 41 additions and 52 deletions
|
|
@ -74,8 +74,7 @@ Class SWWMDamNum play
|
|||
o.damage = damage;
|
||||
o.pos = pos;
|
||||
o.tcolor = Font.FindFontColor("MiniRed");
|
||||
if ( !hnd.usedamcolors ) hnd.usedamcolors = CVar.FindCVar('swwm_damnums_color');
|
||||
if ( hnd.usedamcolors.GetBool() ) for ( int i=0; i<hnd.damtypes.Size(); i++ )
|
||||
if ( swwm_damnums_color ) for ( int i=0; i<hnd.damtypes.Size(); i++ )
|
||||
{
|
||||
if ( hnd.damtypes[i] != type ) continue;
|
||||
o.tcolor = Font.FindFontColor(hnd.damcolors[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue