From: TimePath Date: Tue, 1 Dec 2015 23:29:17 +0000 (+1100) Subject: Debugdraw: hide more entities X-Git-Tag: xonotic-v0.8.2~1590 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d654fd1b55e9d2de56a39fdc03ae94535aa8539b;p=xonotic%2Fxonotic-data.pk3dir.git Debugdraw: hide more entities --- diff --git a/qcsrc/client/shownames.qc b/qcsrc/client/shownames.qc index 16a693dd3..a9a9783f7 100644 --- a/qcsrc/client/shownames.qc +++ b/qcsrc/client/shownames.qc @@ -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 { diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index f2792d0bb..112aec6c2 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -337,6 +337,7 @@ void viewmodel_draw(entity this) entity viewmodel; STATIC_INIT(viewmodel) { viewmodel = new(viewmodel); + make_pure(viewmodel); viewmodel.draw = viewmodel_draw; } diff --git a/qcsrc/common/mutators/base.qh b/qcsrc/common/mutators/base.qh index 6932db8bf..54b7b6624 100644 --- a/qcsrc/common/mutators/base.qh +++ b/qcsrc/common/mutators/base.qh @@ -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( diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index 62d1d8ead..8be054ded 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -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()); diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index e9d46e575..2ef2d09b9 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -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;