models: in mesh could be more than 16k glcmds

This commit is contained in:
Denis Pauk 2024-01-17 01:11:39 +02:00
parent 014dd11b2e
commit e2b2efaa59
2 changed files with 5 additions and 5 deletions

View file

@ -1039,7 +1039,7 @@ Mod_LoadModel_Flex(const char *mod_name, const void *buffer, int modfilelen,
{
int num_mesh_nodes;
num_mesh_nodes = (pheader->ofs_skins - sizeof(*pheader)) / sizeof(short) / 2;
num_mesh_nodes = (pheader->ofs_skins - sizeof(*pheader)) / sizeof(dmdxmesh_t);
if (version != 3)
{

View file

@ -253,16 +253,16 @@ typedef struct
typedef struct
{
float scale[3]; /* multiply short verts by this */
float translate[3]; /* then add this */
vec3_t scale; /* multiply short verts by this */
vec3_t translate; /* then add this */
char name[16]; /* frame name from grabbing */
dxtrivertx_t verts[1]; /* variable sized */
} daliasxframe_t;
typedef struct
{
short start;
short num;
unsigned int start;
unsigned int num;
} dmdxmesh_t;
typedef struct