]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - collision.c
changed Polygon[DF]_Divide functions to also be able to return an on-plane points...
[xonotic/darkplaces.git] / collision.c
index 32d53958a65ff8302b47cda94befa4f776c03a13..225caab2d9030d1a34f9b53b60a7bac6f8e37f2e 100644 (file)
@@ -183,7 +183,7 @@ colbrushf_t *Collision_NewBrushFromPlanes(mempool_t *mempool, int numoriginalpla
                        {
                                // we want to keep the inside of the brush plane so we flip
                                // the cutting plane
-                               PolygonD_Divide(pnumpoints, p[w], -originalplanes[k].normal[0], -originalplanes[k].normal[1], -originalplanes[k].normal[2], -originalplanes[k].dist, 1.0/32.0, pmaxpoints, p[!w], &pnumpoints, 0, NULL, NULL);
+                               PolygonD_Divide(pnumpoints, p[w], -originalplanes[k].normal[0], -originalplanes[k].normal[1], -originalplanes[k].normal[2], -originalplanes[k].dist, 1.0/32.0, pmaxpoints, p[!w], &pnumpoints, 0, NULL, NULL, NULL);
                                w = !w;
                        }
                }