]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svbsp.c
implemented FTE_CSQC_SKELETONOBJECTS (clientside support)
[xonotic/darkplaces.git] / svbsp.c
diff --git a/svbsp.c b/svbsp.c
index 7dcfffed61e75629e97c5f3654ae85996b712185..4184378f5b24439d36ed8401396a8bcd715e3e17 100644 (file)
--- a/svbsp.c
+++ b/svbsp.c
@@ -2,8 +2,6 @@
 // Shadow Volume BSP code written by Forest "LordHavoc" Hale on 2003-11-06 and placed into public domain.
 // Modified by LordHavoc (to make it work and other nice things like that) on 2007-01-24 and 2007-01-25
 
-#include "quakedef.h"
-
 #include <math.h>
 #include <string.h>
 #include "svbsp.h"
@@ -264,7 +262,7 @@ static int SVBSP_AddPolygonNode(svbsp_t *b, int *parentnodenumpointer, int paren
 #if 0
                for (i = 0;i < numpoints-2;i++)
                {
-                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                        Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0.25, 0, 0, 1);
                        Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0.25, 0, 0, 1);
                        Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0.25, 0, 0, 1);
@@ -292,7 +290,7 @@ static int SVBSP_AddPolygonNode(svbsp_t *b, int *parentnodenumpointer, int paren
 #if 0
                for (i = 0;i < numpoints-2;i++)
                {
-                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                        Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0, 0, 0.25, 1);
                        Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0, 0, 0.25, 1);
                        Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0, 0, 0.25, 1);
@@ -314,7 +312,7 @@ int SVBSP_AddPolygon(svbsp_t *b, int numpoints, const double *points, int insert
 //if (insertoccluder)
        for (i = 0;i < numpoints-2;i++)
        {
-               Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+               Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0, 0.25, 0, 1);
                Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0, 0.25, 0, 1);
                Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0, 0.25, 0, 1);