static void Mod_Q3BSP_LoadModels(lump_t *l)
{
q3dmodel_t *in;
- q3mmodel_t *out;
+ q3dmodel_t *out;
int i, j, n, c, count;
in = (void *)(mod_base + l->fileofs);
c = LittleLong(in->numfaces);
if (n < 0 || n + c > loadmodel->brush.num_surfaces)
Host_Error("Mod_Q3BSP_LoadModels: invalid face range %i : %i (%i faces)\n", n, n + c, loadmodel->brush.num_surfaces);
- out->firstsurface = n;
- out->numsurfaces = c;
+ out->firstface = n;
+ out->numfaces = c;
n = LittleLong(in->firstbrush);
c = LittleLong(in->numbrushes);
if (n < 0 || n + c > loadmodel->brush.num_brushes)
mod->brush.submodel = i;
// make the model surface list (used by shadowing/lighting)
- mod->firstmodelsurface = mod->brushq3.data_models[i].firstsurface;
- mod->nummodelsurfaces = mod->brushq3.data_models[i].numsurfaces;
+ mod->firstmodelsurface = mod->brushq3.data_models[i].firstface;
+ mod->nummodelsurfaces = mod->brushq3.data_models[i].numfaces;
mod->firstmodelbrush = mod->brushq3.data_models[i].firstbrush;
mod->nummodelbrushes = mod->brushq3.data_models[i].numbrushes;
mod->surfacelist = Mem_Alloc(loadmodel->mempool, mod->nummodelsurfaces * sizeof(*mod->surfacelist));
#define Q3TEXTUREFLAG_AUTOSPRITE2 32
#define Q3TEXTUREFLAG_ALPHATEST 64
-typedef struct q3mmodel_s
-{
- vec3_t mins;
- vec3_t maxs;
- int numsurfaces;
- int firstsurface;
- int numbrushes;
- int firstbrush;
-}
-q3mmodel_t;
-
typedef struct q3mbrush_s
{
struct colbrushf_s *colbrushf;
typedef struct model_brushq3_s
{
int num_models;
- q3mmodel_t *data_models;
+ q3dmodel_t *data_models;
// freed after loading!
int num_vertices;