From: havoc Date: Wed, 27 May 2020 04:30:40 +0000 (+0000) Subject: Fix a warning and remove an unused prototype. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f841fb65de00253a0157b9d1763b34b7338cc5c8;p=xonotic%2Fdarkplaces.git Fix a warning and remove an unused prototype. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12597 d7cf8633-e32d-0410-b094-e92efae38249 --- 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;