Move NewPlrAnim logic to AnimationInfo
Adjust SetNewAnimation-Parameter Names to Class Member Adjust NewPlrAnim-Parameter Names to SetNewAnimation-Parameter Names
This commit is contained in:
parent
3b87433fc2
commit
16b3b38908
8 changed files with 117 additions and 102 deletions
|
|
@ -880,8 +880,8 @@ void recv_plrinfo(int pnum, TCmdPlrInfoHdr *p, bool recv)
|
|||
LoadPlrGFX(pnum, PFILE_DEATH);
|
||||
plr[pnum]._pmode = PM_DEATH;
|
||||
NewPlrAnim(pnum, plr[pnum]._pDAnim[DIR_S], plr[pnum]._pDFrames, 1, plr[pnum]._pDWidth);
|
||||
plr[pnum].AnimInfo.CurrentFrame = plr[pnum].AnimInfo.FrameLen - 1;
|
||||
plr[pnum].actionFrame = 2 * plr[pnum].AnimInfo.FrameLen;
|
||||
plr[pnum].AnimInfo.CurrentFrame = plr[pnum].AnimInfo.NumberOfFrames - 1;
|
||||
plr[pnum].actionFrame = 2 * plr[pnum].AnimInfo.NumberOfFrames;
|
||||
dFlags[plr[pnum].position.tile.x][plr[pnum].position.tile.y] |= BFLAG_DEAD_PLAYER;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue