[nq] Update weapon model for SU_WEAPON2

This fixes the missing view weapon in vulkan and crashes in other
renderers when playing Conflagrant Rodent.
This commit is contained in:
Bill Currie 2022-05-19 13:23:34 +09:00
parent 7abdfc421e
commit cfe7064708

View file

@ -655,8 +655,10 @@ CL_ParseClientdata (void)
}
}
if (bits & SU_WEAPON2)
if (bits & SU_WEAPON2) {
cl.stats[STAT_WEAPON] |= MSG_ReadByte (net_message) << 8;
cl.viewstate.weapon_model = cl_world.models.a[cl.stats[STAT_WEAPON]];
}
if (bits & SU_ARMOR2)
cl.stats[STAT_ARMOR] |= MSG_ReadByte (net_message) << 8;
if (bits & SU_AMMO2)