Clean some things up
authorSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 19:09:26 +0000 (14:09 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 19:09:26 +0000 (14:09 -0500)
qcsrc/client/miscfunctions.qc
qcsrc/client/shownames.qc
qcsrc/client/shownames.qh

index 48aa85f24ee242da30e8c15deaeed8688f408cd6..b1dcce0ee25d3cdbe6370dd9349fdfbdb29be2e1 100644 (file)
@@ -581,10 +581,6 @@ float getplayeralpha(float pl)
        if(e)
                return e.alpha;
 
-       e = entcs_receiver[pl];
-       if(e)
-               return e.alpha;
-
        return 1;
 }
 
index beb2a89215fb5a10df40b30640256f5603e7b38d..07d15df9eb89d9ba0fb3bcfb1543a9af2b10211c 100644 (file)
@@ -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)
index f043d1a859408695b0da457e377125f563562df4..adbfa57120376e5091f3c957d05557b9873de870 100644 (file)
@@ -3,5 +3,3 @@
 .float sameteam;
 .float fadedelay;
 .float pointtime;
-
-const float SHOWNAMES_MIN_ALPHA = 0.5;