X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fshownames.qc;h=f20f143b0315497e797817c0533a55b8a8f8966a;hb=f2804031fdb2889c46959e91ea9da121e6731686;hp=3d404b5e41b43a6178ed8345b6d2c45be53d1842;hpb=88b09101a9d0a8d5832eb9f31df59ab69be14ef6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 3d404b5e4..f20f143b0 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -43,7 +43,7 @@ void Draw_ShowNames(entity ent) } // handle tag fading - float overlap, onscreen, crosshairdistance; + float overlap = FALSE, onscreen, crosshairdistance; vector o, eo; o = project_3d_to_2d(ent.origin); @@ -187,7 +187,7 @@ void Draw_ShowNames_All() { float t; t = GetPlayerColor(i); - if(t == FL_SPECTATOR) + if(t == NUM_SPECTATOR) continue; entity e; @@ -215,7 +215,7 @@ void Draw_ShowNames_All() e.sameteam = 0; } - e.origin = getplayerorigin(i); + setorigin(e, getplayerorigin(i)); if(e.origin == GETPLAYERORIGIN_ERROR) continue;