X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fshownames.qc;h=05493e263c9bd2d3199a914ef681950b765f4dc9;hb=b683bf23a495d3b1b3f6df3bda75bfe0f069ab05;hp=c6edf5040dbd1056b6f639fb4123bdcd0514ffe6;hpb=f2c50fe4e6218a0a1bb0ca078ee122c5ba6a238d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index c6edf5040..05493e263 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -1,18 +1,12 @@ -#if defined(CSQC) - #include "../dpdefs/csprogsdefs.qh" - #include "defs.qh" - #include "../common/constants.qh" - #include "../common/teams.qh" - #include "../common/util.qh" - #include "../common/mapinfo.qh" - #include "autocvars.qh" - #include "main.qh" - #include "../csqcmodellib/cl_model.qh" - #include "shownames.qh" -#elif defined(MENUQC) -#elif defined(SVQC) -#endif +#include "shownames.qh" +#include "hud.qh" + +#include "../common/constants.qh" +#include "../common/mapinfo.qh" +#include "../common/teams.qh" + +#include "../lib/csqcmodel/cl_model.qh" // self.isactive = player is in range and coordinates/status (health and armor) are up to date // self.origin = player origin TODO: should maybe move this so it's the origin of the shownames tag already in SSQC for culling? @@ -208,8 +202,7 @@ void Draw_ShowNames_All() e = shownames_ent[i]; if(!e) { - e = spawn(); - e.classname = "shownames_tag"; + e = new(shownames_tag); e.sv_entnum = i+1; shownames_ent[i] = e; }