diff --git a/src/r_rlight.c b/src/r_rlight.c index cd0e15604..3ade628fa 100644 --- a/src/r_rlight.c +++ b/src/r_rlight.c @@ -401,8 +401,8 @@ static int RecursiveLightPoint(vec3_t color, mnode_t *node, const vec3_t start, continue; // no lightmaps } - ds = (int)((float)DotProduct(mid, surf->texinfo->vecs[0]) + surf->texinfo->vecs[0][3]); - dt = (int)((float)DotProduct(mid, surf->texinfo->vecs[1]) + surf->texinfo->vecs[1][3]); + ds = (int)((float)DotProduct(mid, surf->lmvecs[0]) + surf->lmvecs[0][3]); + dt = (int)((float)DotProduct(mid, surf->lmvecs[1]) + surf->lmvecs[1][3]); if (ds < surf->texturemins[0] || dt < surf->texturemins[1]) { continue; }