From afbc17d1ea0985ff726e57875b7af8ece59be848 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Thu, 9 Jun 2016 01:18:35 -0600 Subject: [PATCH] qbsp, common: raise BOGUS_RANGE to 65536 --- common/polylib.c | 2 +- qbsp/qbsp.h | 2 +- qbsp/winding.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/polylib.c b/common/polylib.c index 9b8cb97f..f4fc4f35 100644 --- a/common/polylib.c +++ b/common/polylib.c @@ -6,7 +6,7 @@ #include #include -#define BOGUS_RANGE 8192 +#define BOGUS_RANGE 65536 /* * ============= diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index 2bb50ad3..3ff03bfe 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -144,7 +144,7 @@ extern "C" { #define T_EPSILON 0.0002 #define CONTINUOUS_EPSILON 0.0005 -#define BOGUS_RANGE 18000 +#define BOGUS_RANGE 65536 // the exact bounding box of the brushes is expanded some for the headnode // volume. is this still needed? diff --git a/qbsp/winding.cc b/qbsp/winding.cc index b54ddfea..27178c2a 100644 --- a/qbsp/winding.cc +++ b/qbsp/winding.cc @@ -69,8 +69,8 @@ BaseWindingForPlane(const plane_t *p) CrossProduct(vup, p->normal, vright); - VectorScale(vup, 8192, vup); - VectorScale(vright, 8192, vright); + VectorScale(vup, BOGUS_RANGE, vup); + VectorScale(vright, BOGUS_RANGE, vright); // project a really big axis aligned box onto the plane w = (winding_t *)AllocMem(WINDING, 4, true);