From e2ee7b1a95d1efff44450d499d50414457aef645 Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Sat, 1 Apr 2017 21:31:00 +0000 Subject: [PATCH] BoundPoly: fix infinite recursion when loading e1-4.bsp from https://github.com/plankatron/quakemash Fix from QS-Spike. TODO: replace all 9999.. constants used for min/max calculations with FLT_MAX/-FLT_MAX git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1389 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/gl_warp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quakespasm/Quake/gl_warp.c b/quakespasm/Quake/gl_warp.c index 9c73b02f..0214531f 100644 --- a/quakespasm/Quake/gl_warp.c +++ b/quakespasm/Quake/gl_warp.c @@ -56,8 +56,8 @@ void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) int i, j; float *v; - mins[0] = mins[1] = mins[2] = 9999; - maxs[0] = maxs[1] = maxs[2] = -9999; + mins[0] = mins[1] = mins[2] = 999999999; + maxs[0] = maxs[1] = maxs[2] = -999999999; v = verts; for (i=0 ; i