From: FruitieX Date: Tue, 16 Nov 2010 12:58:19 +0000 (+0200) Subject: use cvar_or on the hud flash alpha so it can be seen if you don't have the cvars yet X-Git-Tag: xonotic-v0.1.0preview~86^2~2^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad81e59135e10c84b471ded88d153d8d491702e7;p=xonotic%2Fxonotic-data.pk3dir.git use cvar_or on the hud flash alpha so it can be seen if you don't have the cvars yet --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index f84ebe01d..b3bb78742 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -697,7 +697,7 @@ void CSQC_UpdateView(float w, float h) { if(gametype == GAME_FREEZETAG) if(getstati(STAT_FROZEN)) - drawfill('0 0 0', eX * vid_conwidth + eY * vid_conheight, '0.25 0.90 1', cvar("hud_colorflash_alpha"), DRAWFLAG_ADDITIVE); + drawfill('0 0 0', eX * vid_conwidth + eY * vid_conheight, '0.25 0.90 1', cvar_or("hud_colorflash_alpha", 0.5), DRAWFLAG_ADDITIVE); if(cvar("r_letterbox") == 0) if(cvar("viewsize") < 120)