]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Nov 2005 03:33:20 +0000 (03:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 Nov 2005 03:33:20 +0000 (03:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5820 d7cf8633-e32d-0410-b094-e92efae38249

r_crosshairs.c

index 4884f1f26b65bcd4ac837436f978d1d496a077f9..aeec2190f6a16199d0d420daaa006b2eca7193e3 100644 (file)
@@ -78,7 +78,7 @@ void R_DrawWorldCrosshair(void)
        R_GetCrosshairColor(color);
 
        // trace the shot path up to a certain distance
-       VectorCopy(cl_entities[cl.viewentity].render.origin, v1);
+       Matrix4x4_OriginFromMatrix(&cl_entities[cl.viewentity].render.matrix, v1);
        v1[2] += 16; // HACK: this depends on the QC
 
        // get the forward vector for the gun (not the view)