Fix q2bsp support.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3344 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-08-08 12:49:51 +00:00
parent 00cca0ea84
commit 9f20876069
1 changed files with 2 additions and 0 deletions

View File

@ -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);