From 7e4def70af826d667e11b7ac707fd55030432194 Mon Sep 17 00:00:00 2001 From: Forest Hale Date: Mon, 26 Jun 2000 07:47:43 +0000 Subject: [PATCH] Fix for bmodel relative lighting in R_AddDynamicLights. --- source/gl_rsurf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gl_rsurf.c b/source/gl_rsurf.c index 0622b00..193c20e 100644 --- a/source/gl_rsurf.c +++ b/source/gl_rsurf.c @@ -125,7 +125,8 @@ R_AddDynamicLights (msurface_t *surf) if ( !(surf->dlightbits & (1<plane->normal) - surf->plane->dist; + VectorSubtract(cl_dlights[lnum].origin, currententity->origin, local); + dist = DotProduct (local, surf->plane->normal) - surf->plane->dist; for (i=0 ; i<3 ; i++) impact[i] = cl_dlights[lnum].origin[i] - surf->plane->normal[i]*dist;