// adds decal surfaces to the scene void R_AddDecalSurfaces( mbrush46_model_t* bmodel ) { // get decal count int count = ( bmodel == tr.world->bmodels ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS ); // iterate through decals mbrush46_decal_t* decal = bmodel->decals; for ( int i = 0; i < count; i++, decal++ ) { R_AddDecalSurface( decal ); } }
/* R_AddDecalSurfaces() adds decal surfaces to the scene */ void R_AddDecalSurfaces(bspModel_t *bmodel) { int i, count = (bmodel == tr.world->models ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS); // get decal count decal_t *decal = bmodel->decals; // iterate through decals for (i = 0; i < count; i++, decal++) { R_AddDecalSurface(decal); } }
void R_AddDecalSurfaces( bmodel_t *bmodel ) { int i, count; decal_t *decal; /* get decal count */ count = ( bmodel == tr.world->bmodels ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS ); /* iterate through decals */ decal = bmodel->decals; for ( i = 0; i < count; i++, decal++ ) R_AddDecalSurface( decal ); }