Skip to content

Commit

Permalink
Only warn if MD5 has less frames than MD2.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Oct 3, 2024
1 parent 943a00c commit c2cb036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/refresh/models.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,9 +1179,9 @@ static bool MD5_ParseAnim(model_t *model, const char *s, const char *path)
mdl->num_frames = MD5_ParseUint(&s, 1, MD5_MAX_FRAMES);

// warn on mismatched frame counts (not fatal)
if (mdl->num_frames != model->numframes)
Com_WPrintf("%s doesn't match frame count for %s (%i vs %i)\n",
path, model->name, mdl->num_frames, model->numframes);
if (mdl->num_frames < model->numframes)
Com_WPrintf("%s has less frames than %s (%i < %i)\n", path,
model->name, mdl->num_frames, model->numframes);

MD5_ParseExpect(&s, "numJoints");
num_joints = MD5_ParseUint(&s, 1, MD5_MAX_JOINTS);
Expand Down

0 comments on commit c2cb036

Please sign in to comment.