From 52bf01ea6fe3804898797ca418cfabc97cec4bbc Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 14 Nov 2022 19:31:34 +1000 Subject: [PATCH] Disable some warnings that serve no purpose, fixes #2360 --- qcsrc/server/weapons/common.qc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/weapons/common.qc b/qcsrc/server/weapons/common.qc index a00eb120e..2ac690651 100644 --- a/qcsrc/server/weapons/common.qc +++ b/qcsrc/server/weapons/common.qc @@ -120,11 +120,14 @@ bool SUB_NoImpactCheck(entity this, entity toucher) // mirror-impact of something hitting the projectile instead of the // projectile hitting the something, or a touchareagrid one. Neither of // these stop the projectile from moving, so... + // NOTE: this notice is disabled to prevent spam as projectiles can hit content-less objects (other projectiles!) +#if 0 if(trace_dphitcontents == 0) { LOG_TRACEF("A hit from a projectile happened with no hit contents! DEBUG THIS, this should never happen for projectiles! Projectile will self-destruct. (edict: %i, classname: %s, origin: %v)", this, this.classname, this.origin); checkclient(this); // TODO: .health is checked in the engine with this, possibly replace with a QC function? } +#endif if (trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT) return true; if (toucher == NULL && this.size != '0 0 0') @@ -135,7 +138,8 @@ bool SUB_NoImpactCheck(entity this, entity toucher) traceline(this.origin - tic, this.origin + tic, MOVE_NORMAL, this); if (trace_fraction >= 1) { - LOG_TRACE("Odd... did not hit...?"); + // NOTE: this notice can occur when projectiles hit non-world objects, better to not spam the console! + //LOG_TRACE("Odd... did not hit...?"); } else if (trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT) { -- 2.39.2