mbspc: fix q3 entities being loaded twice

This commit is contained in:
Garux 2021-08-15 18:54:28 +03:00
parent 1372ea440b
commit d82996d684

View File

@ -293,7 +293,7 @@ void Q3_BSPBrushToMapBrush(q3_dbrush_t *bspbrush, entity_t *mapent)
return; return;
} //end if } //end if
// allow detail brushes to be removed // allow detail brushes to be removed
if (nodetail && (b->contents & CONTENTS_DETAIL) ) if (nodetail && (b->contents & CONTENTS_DETAIL) )
{ {
b->numsides = 0; b->numsides = 0;
@ -621,9 +621,9 @@ void Q3_LoadMapFromBSP(struct quakefile_s *qf)
brushmodelnumbers[i] = -1; brushmodelnumbers[i] = -1;
nummapbrushsides = 0; nummapbrushsides = 0;
num_entities = 0;
Q3_ParseEntities(); if( num_entities == 0 ) // load, unless already loaded by Q3_PrintBSPFileSizes()
Q3_ParseEntities();
// //
for (i = 0; i < num_entities; i++) for (i = 0; i < num_entities; i++)
{ {