Added weapon interpolation.
This commit is contained in:
parent
d786148ccf
commit
86e9504d04
8 changed files with 254 additions and 4 deletions
|
|
@ -1726,6 +1726,15 @@ void G_DoPlayerPop(int playernum)
|
|||
players[playernum].mo = NULL;
|
||||
players[playernum].camera = NULL;
|
||||
}
|
||||
// Now's the ideal time to remove his psprite interpolations.
|
||||
for (int ii = 0; ii < NUMPSPRITES; ii++)
|
||||
{
|
||||
if (players[playernum].psprites[ii].interpolation != NULL)
|
||||
{
|
||||
players[playernum].psprites[ii].StopInterpolation();
|
||||
players[playernum].pspinterp[ii] = NULL;
|
||||
}
|
||||
}
|
||||
// [RH] Let the scripts know the player left
|
||||
FBehavior::StaticStartTypedScripts(SCRIPT_Disconnect, NULL, true, playernum);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue