[nq] Relink entities when there model changes

This is the fix for the grenade explosion bug. It was rather difficult
to track down because *two* explosions are rendered for the one grenade
(but that's actually another bug due to the nq/qw merge). It's also
correct as changing the model can change the BSP leafs the entity
touches.
This commit is contained in:
Bill Currie 2022-10-23 23:02:16 +09:00
parent cf4a3399c4
commit 9f9e21f1dc

View file

@ -242,6 +242,9 @@ CL_RelinkEntities (void)
|| new->modelindex != old->modelindex) {
old->modelindex = new->modelindex;
set_entity_model (i, new->modelindex);
if (visibility->efrag) {
R_RemoveEfrags (ent);
}
}
animation->frame = new->frame;
if (SET_TEST_MEMBER (&cl_forcelink, i)