X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=sv_light.c;h=41b4475f730824758e119638012c62aa67f449e0;hb=1f388bf636d1632373f47c04f08ddaf085c8b385;hp=c54dd55245debb3656ccec7ca0ac3ec49bc20351;hpb=c4ee1bbcc6b2f917465f07269ad09942bbf40849;p=xonotic%2Fdarkplaces.git diff --git a/sv_light.c b/sv_light.c index c54dd552..41b4475f 100644 --- a/sv_light.c +++ b/sv_light.c @@ -17,7 +17,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// r_light.c #include "quakedef.h" @@ -47,11 +46,6 @@ loc0: goto loc0; } // found an intersection -// mid = startz + (endz - startz) * (startz - node->plane->dist) / (startz - endz); -// mid = startz + distz * (startz - node->plane->dist) / (-distz); -// mid = startz + (-(startz - node->plane->dist)); -// mid = startz - (startz - node->plane->dist); -// mid = startz + node->plane->dist - startz; mid = node->plane->dist; break; default: @@ -65,8 +59,6 @@ loc0: goto loc0; } // found an intersection -// mid = startz + (endz - startz) * ((front - node->plane->dist) / ((front - node->plane->dist) - (back - node->plane->dist))); -// mid = startz + (endz - startz) * ((front - node->plane->dist) / (front - back)); mid = startz + distz * (front - node->plane->dist) / (front - back); break; } @@ -132,7 +124,6 @@ loc0: startz = mid; distz = endz - startz; goto loc0; -// return RecursiveLightPoint (color, node->children[side ^ 1], x, y, mid, endz); } } @@ -149,3 +140,4 @@ void SV_LightPoint (vec3_t color, vec3_t p) color[0] = color[1] = color[2] = 0; SV_RecursiveLightPoint (color, sv.worldmodel->nodes, p[0], p[1], p[2], p[2] - 65536); } +