From 476034f8e340b154c563a3380d223500d081425d Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Sun, 2 Nov 2003 19:31:50 +0000 Subject: [PATCH] Fixed the planes bug Tig reported? --- gl_q3bsp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gl_q3bsp.c b/gl_q3bsp.c index 41e36b8..07d06c0 100644 --- a/gl_q3bsp.c +++ b/gl_q3bsp.c @@ -594,7 +594,11 @@ void ModQ3_LoadFaces (lump_t *l) out->numedges = 0; out->flags = 0; - planenum = FindPlane(in->normal,tempVertices[in->firstvertex].position); //ENDIAN bug!! flip in->normal + if (in->type == 1) { + planenum = FindPlane(in->normal,tempVertices[in->firstvertex].position); //ENDIAN bug!! flip in->normal + } else { + planenum = 0; //just any valid plane pointer... + } out->plane = loadmodel->planes + planenum; // lighting info