From 9c94125fe3b3877ebb6b0ec22db94a32df0cc7a5 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 23 Nov 2005 03:33:20 +0000 Subject: [PATCH] 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 --- r_crosshairs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2