//=========================================================================== // // Parameter: - // Returns: - // Changes Globals: - //=========================================================================== void Q3_ParseBSPBrushes(entity_t *mapent) { int i; for (i = 0; i < q3_dmodels[mapent->modelnum].numBrushes; i++) { Q3_BSPBrushToMapBrush(&q3_dbrushes[q3_dmodels[mapent->modelnum].firstBrush + i], mapent); } //end for } //end of the function Q3_ParseBSPBrushes
//=========================================================================== //=========================================================================== void Q3_ParseBSPBrushes( entity_t *mapent ) { int i; /* //give all the brushes that belong to this entity the number of the //BSP model used by this entity Q3_SetBrushModelNumbers(mapent); //now parse all the brushes with the correct mapent->modelnum for (i = 0; i < q3_numbrushes; i++) { if (brushmodelnumbers[i] == mapent->modelnum) { Q3_BSPBrushToMapBrush(&q3_dbrushes[i], mapent); } //end if } //end for */ for ( i = 0; i < q3_dmodels[mapent->modelnum].numBrushes; i++ ) { Q3_BSPBrushToMapBrush( &q3_dbrushes[q3_dmodels[mapent->modelnum].firstBrush + i], mapent ); } //end for } //end of the function Q3_ParseBSPBrushes