From f841fb65de00253a0157b9d1763b34b7338cc5c8 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 27 May 2020 04:30:40 +0000 Subject: [PATCH] Fix a warning and remove an unused prototype. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12597 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index 157d6eb8..25b88923 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -3996,7 +3996,6 @@ qboolean R_CanSeeBox(int numsamples, vec_t eyejitter, vec_t entboxenlarge, vec_t vec3_t padmins, padmaxs; vec3_t start; vec3_t end; - trace_t trace; dp_model_t *model = r_refdef.scene.worldmodel; static vec3_t positions[] = { { 0.5f, 0.5f, 0.5f }, @@ -4052,6 +4051,7 @@ qboolean R_CanSeeBox(int numsamples, vec_t eyejitter, vec_t entboxenlarge, vec_t { for (i = 0; i < sizeof(positions) / sizeof(positions[0]); i++) { + trace_t trace; VectorCopy(eye, start); end[0] = boxmins[0] + (boxmaxs[0] - boxmins[0]) * positions[i][0]; end[1] = boxmins[1] + (boxmaxs[1] - boxmins[1]) * positions[i][1]; @@ -9802,7 +9802,6 @@ static void R_DrawModelDecals(void) } } -extern cvar_t mod_collision_bih; static void R_DrawDebugModel(void) { entity_render_t *ent = rsurface.entity; -- 2.39.2