From 9f20876069675855277c5e8cc3f277ca393c1157 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 8 Aug 2009 12:49:51 +0000 Subject: [PATCH] Fix q2bsp support. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3344 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/gl_q2bsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/common/gl_q2bsp.c b/engine/common/gl_q2bsp.c index 2c4724e88..7c4be002f 100644 --- a/engine/common/gl_q2bsp.c +++ b/engine/common/gl_q2bsp.c @@ -1548,6 +1548,8 @@ qboolean CMod_LoadLeafs (lump_t *l) out->contents = LittleLong (in->contents); out->cluster = (unsigned short)LittleShort (in->cluster); + if (out->cluster == 0xffff) + out->cluster = -1; out->area = LittleShort (in->area); out->firstleafbrush = (unsigned short)LittleShort (in->firstleafbrush); out->numleafbrushes = (unsigned short)LittleShort (in->numleafbrushes);