From 04b239d7f6d022fb5a4c42c19b4d8888a0361514 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 10 Apr 2005 14:01:22 +0000 Subject: [PATCH] removed unused leaf parameter on CompleteLightPoint git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5169 d7cf8633-e32d-0410-b094-e92efae38249 --- r_light.c | 2 +- r_light.h | 2 +- r_sprites.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/r_light.c b/r_light.c index 42a50e30..716998a4 100644 --- a/r_light.c +++ b/r_light.c @@ -169,7 +169,7 @@ LIGHT SAMPLING ============================================================================= */ -void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic, const mleaf_t *leaf) +void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic) { VectorClear(diffusecolor); VectorClear(diffusenormal); diff --git a/r_light.h b/r_light.h index 67f00502..ea1e525a 100644 --- a/r_light.h +++ b/r_light.h @@ -7,7 +7,7 @@ extern dlight_t r_dlight[MAX_DLIGHTS]; void R_UpdateLights(void); void R_DrawCoronas(void); -void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic, const mleaf_t *leaf); +void R_CompleteLightPoint(vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal, const vec3_t p, int dynamic); int R_LightModel(float *ambient4f, float *diffusecolor, float *diffusenormal, const entity_render_t *ent, float colorr, float colorg, float colorb, float colora, int worldcoords); void R_LightModel_CalcVertexColors(const float *ambientcolor4f, const float *diffusecolor, const float *diffusenormal, int numverts, const float *vertex3f, const float *normal3f, float *color4f); void R_UpdateEntLights(entity_render_t *ent); diff --git a/r_sprites.c b/r_sprites.c index cf6048d4..16b493be 100644 --- a/r_sprites.c +++ b/r_sprites.c @@ -95,7 +95,7 @@ void R_DrawSpriteModelCallback(const void *calldata1, int calldata2) color[0] = color[1] = color[2] = 1; else { - R_CompleteLightPoint(color, diffusecolor, diffusenormal, ent->origin, true, NULL); + R_CompleteLightPoint(color, diffusecolor, diffusenormal, ent->origin, true); VectorMA(color, 0.5f, diffusecolor, color); } color[0] *= ent->colormod[0]; -- 2.39.2