From: havoc Date: Wed, 23 Nov 2005 03:33:20 +0000 (+0000) Subject: fix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity X-Git-Tag: xonotic-v0.1.0preview~4464 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9c94125fe3b3877ebb6b0ec22db94a32df0cc7a5;p=xonotic%2Fdarkplaces.git fix bugs with crosshair_static 0 mode when the player is an EF_NODRAW entity git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5820 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_crosshairs.c b/r_crosshairs.c index 4884f1f2..aeec2190 100644 --- a/r_crosshairs.c +++ b/r_crosshairs.c @@ -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)