X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fteamradar.qc;h=abd700e613e38895b44ceeba7acbe86498895b42;hb=c1389c740a4a144e46543e51296ad90ade3c365b;hp=a8708f2460f809a579f96db0428fbc1522432c61;hpb=eac60648c4017e495060dd3ba9e50ac4bad5000a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/teamradar.qc b/qcsrc/client/teamradar.qc index a8708f246..abd700e61 100644 --- a/qcsrc/client/teamradar.qc +++ b/qcsrc/client/teamradar.qc @@ -1,6 +1,6 @@ #include "teamradar.qh" -#include "hud/all.qh" +#include "hud/_mod.qh" #include @@ -49,12 +49,12 @@ vector teamradar_2dcoord_to_texcoord(vector in) return out; } -vector teamradar_texcoord_to_3dcoord(vector in,float z) +vector teamradar_texcoord_to_3dcoord(vector in,float oz) { vector out; out_x = in_x * (mi_picmax_x - mi_picmin_x) + mi_picmin_x; out_y = in_y * (mi_picmax_y - mi_picmin_y) + mi_picmin_y; - out_z = z; + out_z = oz; return out; } @@ -203,6 +203,7 @@ NET_HANDLE(ENT_CLIENT_RADARLINK, bool isnew) this.iflags = IFLAG_VELOCITY | IFLAG_ORIGIN; this.classname = "radarlink"; + if (isnew) IL_PUSH(g_radarlinks, this); if(sendflags & 1) {