From: Samual Date: Tue, 3 May 2011 23:03:46 +0000 (-0400) Subject: Add extra information to no hit contents warning SO YOU ACTUALLY _CAN_ DEBUG IT! X-Git-Tag: xonotic-v0.5.0~263^2~9^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=380accfc64bbf105a375654798d5c9355f882797;p=xonotic%2Fxonotic-data.pk3dir.git Add extra information to no hit contents warning SO YOU ACTUALLY _CAN_ DEBUG IT! --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 0c8162b54..95a8b0243 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -2001,7 +2001,8 @@ float SUB_NoImpactCheck() // these stop the projectile from moving, so... if(trace_dphitcontents == 0) { - dprint("A hit happened with zero hit contents... DEBUG THIS, this should never happen for projectiles! Projectile will self-destruct.\n"); + //dprint("A hit happened with zero hit contents... DEBUG THIS, this should never happen for projectiles! Projectile will self-destruct.\n"); + dprint(sprintf(_("A hit from a projectile happened with no hit contents! DEBUG THIS, this should never happen for projectiles! Profectile will self-destruct. (edict: %d, classname: %s, origin: %s)\n"), num_for_edict(self), self.classname, vtos(self.origin))); checkclient(); } if (trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT)