From 79cb3379cf76977f09cf80ac64a4f73a0d3c75c2 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 3 Jan 2016 23:17:57 -0700 Subject: [PATCH] Experiment with huge coordinate support --- qbsp/qbsp.h | 2 +- qbsp/winding.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index 4ff340a0..18a536e4 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -132,7 +132,7 @@ #define T_EPSILON 0.0002 #define CONTINUOUS_EPSILON 0.0005 -#define BOGUS_RANGE 18000 +#define BOGUS_RANGE (1000*1000) // the exact bounding box of the brushes is expanded some for the headnode // volume. is this still needed? diff --git a/qbsp/winding.c b/qbsp/winding.c index 925e3fe1..f779bb52 100644 --- a/qbsp/winding.c +++ b/qbsp/winding.c @@ -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 = AllocMem(WINDING, 4, true);