]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_crosshairs.c
fix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity
[xonotic/darkplaces.git] / 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)