Skip to content

Commit

Permalink
ignore numBones assert if we're mixing jk2/jka models (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Razish committed Feb 19, 2024
1 parent 1c3056e commit 8e56d3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/rd-vanilla/tr_ghoul2.cpp
Expand Up @@ -3611,7 +3611,11 @@ qboolean R_LoadMDXM( model_t *mod, void *buffer, const char *mod_name, qboolean
#ifndef JK2_MODE
else
{
assert (tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
// let us mix JK2/JKA models and animations
if (tr.models[mdxm->animIndex]->mdxa->numBones != 53 && tr.models[mdxm->animIndex]->mdxa->numBones != 72 && mdxm->numBones != 53 &&
mdxm->numBones != 72) {
assert(tr.models[mdxm->animIndex]->mdxa->numBones == mdxm->numBones);
}
if (tr.models[mdxm->animIndex]->mdxa->numBones != mdxm->numBones)
{
if ( isAnOldModelFile )
Expand Down

0 comments on commit 8e56d3c

Please sign in to comment.