Frees polymodel located in index of Poly_models array
| 869 | |
| 870 | // Frees polymodel located in index of Poly_models array |
| 871 | void 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 | |
| 885 | void ReadModelVector(vector *vec, CFILE *infile) { |
| 886 | vec->x = cf_ReadFloat(infile); |
no test coverage detected