Added weapon interpolation.
This commit is contained in:
parent
d786148ccf
commit
86e9504d04
8 changed files with 254 additions and 4 deletions
|
|
@ -1104,11 +1104,32 @@ void P_MovePsprites (player_t *player)
|
|||
P_CheckWeaponZoom (player);
|
||||
}
|
||||
}
|
||||
|
||||
psp = &player->psprites[0];
|
||||
for (i = 0; i < NUMPSPRITES; i++, psp++)
|
||||
{
|
||||
if (psp->state == NULL)
|
||||
{
|
||||
if (psp->interpolation != NULL)
|
||||
{
|
||||
player->pspinterp[i] = NULL;
|
||||
psp->StopInterpolation();
|
||||
}
|
||||
}
|
||||
else if (psp->interpolation == NULL)
|
||||
{
|
||||
player->pspinterp[i] = psp->SetInterpolation(player - players, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FArchive &operator<< (FArchive &arc, pspdef_t &def)
|
||||
{
|
||||
arc << def.state << def.tics << def.sx << def.sy
|
||||
<< def.sprite << def.frame;
|
||||
|
||||
if (SaveVersion >= 4525)
|
||||
arc << def.interpolation;
|
||||
|
||||
return arc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue