mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-20 07:20:50 +00:00
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:
parent
00cca0ea84
commit
9f20876069
1 changed files with 2 additions and 0 deletions
|
@ -1548,6 +1548,8 @@ qboolean CMod_LoadLeafs (lump_t *l)
|
||||||
|
|
||||||
out->contents = LittleLong (in->contents);
|
out->contents = LittleLong (in->contents);
|
||||||
out->cluster = (unsigned short)LittleShort (in->cluster);
|
out->cluster = (unsigned short)LittleShort (in->cluster);
|
||||||
|
if (out->cluster == 0xffff)
|
||||||
|
out->cluster = -1;
|
||||||
out->area = LittleShort (in->area);
|
out->area = LittleShort (in->area);
|
||||||
out->firstleafbrush = (unsigned short)LittleShort (in->firstleafbrush);
|
out->firstleafbrush = (unsigned short)LittleShort (in->firstleafbrush);
|
||||||
out->numleafbrushes = (unsigned short)LittleShort (in->numleafbrushes);
|
out->numleafbrushes = (unsigned short)LittleShort (in->numleafbrushes);
|
||||||
|
|
Loading…
Reference in a new issue