]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Debugdraw: hide more entities
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 1 Dec 2015 23:29:17 +0000 (10:29 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 1 Dec 2015 23:29:17 +0000 (10:29 +1100)
qcsrc/client/shownames.qc
qcsrc/client/view.qc
qcsrc/common/mutators/base.qh
qcsrc/common/triggers/trigger/jumppads.qc
qcsrc/common/weapons/all.qc

index 16a693dd3e7d58cd73ccf56494c970408a799d6d..a9a9783f7cc141245319097b5889024a9e14aecd 100644 (file)
@@ -24,6 +24,7 @@ STATIC_INIT(shownames_ent)
        for (int i = 0; i < maxclients; ++i)
        {
                entity e = new(shownames_tag);
+               make_pure(e);
                e.sv_entnum = i + 1;
                LL_PUSH(shownames_ent, e);
        }
@@ -167,7 +168,12 @@ void Draw_ShowNames_All()
        if (!autocvar_hud_shownames) return;
        LL_EACH(shownames_ent, true, LAMBDA(
                entity entcs = entcs_receiver(i);
-               if (!entcs) continue;
+               if (!entcs)
+               {
+                       make_pure(it);
+                       continue;
+               }
+               make_impure(it);
                if (entcs.think) WITH(entity, self, entcs, entcs.think());
                else
                {
index f2792d0bb1f542e22f2e705f441332f69aba4f38..112aec6c20fd57eedc3bd78cbfe60c70a0574926 100644 (file)
@@ -337,6 +337,7 @@ void viewmodel_draw(entity this)
 entity viewmodel;
 STATIC_INIT(viewmodel) {
     viewmodel = new(viewmodel);
+    make_pure(viewmodel);
        viewmodel.draw = viewmodel_draw;
 }
 
index 6932db8bf99dce6c69de41dfdcf9d3ae2147dda1..54b7b662413e28aff63f1c6795aef7ea11237063 100644 (file)
@@ -189,6 +189,7 @@ NET_HANDLE(Mutator, bool isNew)
     return = true;
     if (isNew)
     {
+        make_pure(this);
         this.entremove = NET_Mutator_Remove;
         int added = 0;
         WITH(bool, mutator_log, true, LAMBDA(
index 62d1d8eaded90017397eb824557f80231bd6b64d..8be054ded432d614cfd6d7980db0c34e310033d5 100644 (file)
@@ -426,6 +426,7 @@ spawnfunc(target_position) { make_pure(this); target_push_link(); }
 
 NET_HANDLE(ENT_CLIENT_TRIGGER_PUSH, bool isnew)
 {
+       make_pure(this);
        float sf = ReadByte();
 
        if(sf & 1)
@@ -468,6 +469,7 @@ void target_push_remove()
 
 NET_HANDLE(ENT_CLIENT_TARGET_PUSH, bool isnew)
 {
+       make_pure(this);
        self.classname = "push_target";
        self.cnt = ReadByte();
        self.targetname = strzone(ReadString());
index e9d46e575b2a79d4707948cd2a566abcb84864e7..2ef2d09b947d2d9e35a83baf32df90b67ed757e5 100644 (file)
@@ -425,6 +425,7 @@ void CL_WeaponEntity_SetModel(entity this, string name)
                        if (!this.weaponchild)
                        {
                                this.weaponchild = new(weaponchild);
+                               make_pure(this.weaponchild);
 #ifdef CSQC
                                this.weaponchild.drawmask = MASK_NORMAL;
                                this.weaponchild.renderflags |= RF_VIEWMODEL;