]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svbsp.c
prevent creation of a cvar named "", as that breaks cvar()
[xonotic/darkplaces.git] / svbsp.c
diff --git a/svbsp.c b/svbsp.c
index ca6a1cf4dc47e606d572a0c66b51d82871ead170..4184378f5b24439d36ed8401396a8bcd715e3e17 100644 (file)
--- a/svbsp.c
+++ b/svbsp.c
@@ -262,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);
@@ -290,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);
@@ -312,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);