mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- SW: Properly guard the call to PlayerDeathReset()
in TerminateLevel()
.
* Stems from an oversight in 28b97486cd
.
* Fixes #796.
This commit is contained in:
parent
8bbf7f4e00
commit
cf5ba0886a
2 changed files with 2 additions and 8 deletions
|
@ -580,7 +580,8 @@ void TerminateLevel(void)
|
|||
{
|
||||
PLAYER* pp = &Player[pnum];
|
||||
|
||||
PlayerDeathReset(pp);
|
||||
if (pp->Flags & PF_DEAD)
|
||||
PlayerDeathReset(pp);
|
||||
|
||||
// Free panel sprites for players
|
||||
pClearSpriteList(pp);
|
||||
|
|
|
@ -6016,13 +6016,6 @@ void DoPlayerDeathCheckKeys(PLAYER* pp)
|
|||
|
||||
DoPlayerZrange(pp);
|
||||
|
||||
pp->sop_control = nullptr;
|
||||
pp->sop_remote = nullptr;
|
||||
pp->sop_riding = nullptr;
|
||||
pp->sop = nullptr;
|
||||
|
||||
pp->Flags &= ~(PF_WEAPON_DOWN|PF_WEAPON_RETRACT);
|
||||
pp->Flags &= ~(PF_DEAD);
|
||||
plActor->spr.cstat &= ~(CSTAT_SPRITE_YCENTER);
|
||||
plActor->spr.cstat |= (CSTAT_SPRITE_BLOCK|CSTAT_SPRITE_BLOCK_HITSCAN);
|
||||
plActor->spr.scale = DVector2(PLAYER_NINJA_XREPEAT, PLAYER_NINJA_YREPEAT);
|
||||
|
|
Loading…
Reference in a new issue