From 304d947a4667eb90072417f222ce063227755d59 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 31 Aug 2004 09:19:11 +0000 Subject: [PATCH] This function wasn't used anywhere anymore git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@86 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rlight.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/engine/gl/gl_rlight.c b/engine/gl/gl_rlight.c index 74ced6276..4c9c7bc5d 100644 --- a/engine/gl/gl_rlight.c +++ b/engine/gl/gl_rlight.c @@ -847,36 +847,6 @@ float *GLRecursiveLightPoint3C (mnode_t *node, vec3_t start, vec3_t end) return GLRecursiveLightPoint3C (node->children[!side], mid, end); } -float *GLR_LightPoint3C (vec3_t p) -{ - static vec3_t l = {255, 255, 255}; - static vec3_t nl = {0, 0, 0}; - float *r; - vec3_t end; - - if (!cl.worldmodel->lightdata) - { - return l; - } - - if (cl.worldmodel->fromgame == fg_quake3) - return nl; - - if (cl.worldmodel->fromgame == fg_doom) - return nl; - - end[0] = p[0]; - end[1] = p[1]; - end[2] = p[2] - 2048; - - r = GLRecursiveLightPoint3C (cl.worldmodel->nodes, p, end); - - if (r == NULL) - return nl; - - return r; -} - #endif void GLQ1BSP_LightPointValues(vec3_t point, vec3_t res_diffuse, vec3_t res_ambient, vec3_t res_dir)