From: Samual Lenks Date: Sat, 28 Dec 2013 19:09:26 +0000 (-0500) Subject: Clean some things up X-Git-Tag: xonotic-v0.8.0~249^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25d031b3b379ce9d87096fa791019242ffadce24;p=xonotic%2Fxonotic-data.pk3dir.git Clean some things up --- diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index 48aa85f24..b1dcce0ee 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -581,10 +581,6 @@ float getplayeralpha(float pl) if(e) return e.alpha; - e = entcs_receiver[pl]; - if(e) - return e.alpha; - return 1; } diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index beb2a8921..07d15df9e 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -9,6 +9,7 @@ const float SHOWNAMES_FADESPEED = 4; const float SHOWNAMES_FADEDELAY = 0.4; +const float SHOWNAMES_MIN_ALPHA = 0.5; void Draw_ShowNames(entity ent) { if(!autocvar_hud_shownames) diff --git a/qcsrc/client/shownames.qh b/qcsrc/client/shownames.qh index f043d1a85..adbfa5712 100644 --- a/qcsrc/client/shownames.qh +++ b/qcsrc/client/shownames.qh @@ -3,5 +3,3 @@ .float sameteam; .float fadedelay; .float pointtime; - -const float SHOWNAMES_MIN_ALPHA = 0.5;