From bc0e1778dc7787fe19e1398b0057d0a1ea4839ae Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 5 Aug 2015 12:04:22 -0600 Subject: [PATCH] light: allow negative surface offsets for niche use --- light/entities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/entities.c b/light/entities.c index 578ae432..71bfa6c0 100644 --- a/light/entities.c +++ b/light/entities.c @@ -1061,7 +1061,7 @@ static void CreateSurfaceLightOnFaceSubdivision(const bsp2_dface_t *face, const } offset = atof(ValueForKey(surflight_template, "_surface_offset")); - if (offset <= 0) + if (offset == 0) offset = 2.0; VectorMA(midpoint, offset, normal, midpoint);