]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add extra information to no hit contents warning SO YOU ACTUALLY _CAN_ DEBUG IT!
authorSamual <samual@xonotic.org>
Tue, 3 May 2011 23:03:46 +0000 (19:03 -0400)
committerSamual <samual@xonotic.org>
Tue, 3 May 2011 23:03:46 +0000 (19:03 -0400)
qcsrc/server/miscfunctions.qc

index 0c8162b54464275c9df9537dd1aad11d4f9af682..95a8b02437f2588944093b9f612c6a9e31e09f45 100644 (file)
@@ -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)