MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreePolyModel

Function FreePolyModel

model/polymodel.cpp:871–883  ·  view source on GitHub ↗

Frees polymodel located in index of Poly_models array

Source from the content-addressed store, hash-verified

869
870// Frees polymodel located in index of Poly_models array
871void FreePolyModel(int i) {
872 ASSERT(Poly_models[i].used > 0);
873
874 Poly_models[i].used--;
875
876 if (Poly_models[i].used)
877 return;
878
879 FreePolymodelData(i);
880
881 Poly_models[i].used = 0;
882 Poly_models[i].flags |= PMF_NOT_RESIDENT;
883}
884
885void ReadModelVector(vector *vec, CFILE *infile) {
886 vec->x = cf_ReadFloat(infile);

Callers 15

ReadNewModelFileFunction · 0.85
LoadPolyModelFunction · 0.85
FreeAllModelsFunction · 0.85
OnDeleteRobotMethod · 0.85
OnDeleteWeaponMethod · 0.85
OnAddDoorMethod · 0.85
OnDeleteDoorMethod · 0.85
OnGenericDeleteMethod · 0.85
OnGenericChangeModelMethod · 0.85
OnNolodMethod · 0.85
OnPshipDeleteMethod · 0.85

Calls 1

FreePolymodelDataFunction · 0.85

Tested by

no test coverage detected