From dba4739444e4fcd36f96631a7d170fb4a3c667ff Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 30 May 2016 02:00:38 -0600 Subject: [PATCH] light: make Light_PointInSolid non-static --- include/light/entities.h | 2 ++ light/entities.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/light/entities.h b/include/light/entities.h index 74a63516..81427995 100644 --- a/include/light/entities.h +++ b/include/light/entities.h @@ -137,6 +137,8 @@ void WriteEntitiesToString(bsp2_t *bsp); vec_t GetLightValue(const lightsample_t *light, const entity_t *entity, vec_t dist); +bool Light_PointInSolid(const bsp2_t *bsp, const vec3_t point ); + #ifdef __cplusplus } #endif diff --git a/light/entities.c b/light/entities.c index 837a8f67..d1010b43 100644 --- a/light/entities.c +++ b/light/entities.c @@ -1237,7 +1237,7 @@ static bool Light_PointInSolid_r(const bsp2_t *bsp, int nodenum, const vec3_t po } } -static bool Light_PointInSolid(const bsp2_t *bsp, const vec3_t point ) +bool Light_PointInSolid(const bsp2_t *bsp, const vec3_t point ) { /* check all models */ for (int i=0; inummodels; i++) {