mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 13:31:07 +00:00
- Fixed: Switching maps using the ResetHealth flag while dead would prevent proper
reinitialization of the player on the new map. SVN r3478 (trunk)
This commit is contained in:
parent
ac0c1eb64b
commit
0a03676796
1 changed files with 2 additions and 2 deletions
|
@ -1264,8 +1264,8 @@ void G_PlayerFinishLevel (int player, EFinishLevelType mode, int flags)
|
|||
P_UndoPlayerMorph (p, p, 0, true);
|
||||
}
|
||||
|
||||
// Resets player health to default
|
||||
if (flags & CHANGELEVEL_RESETHEALTH)
|
||||
// Resets player health to default if not dead.
|
||||
if ((flags & CHANGELEVEL_RESETHEALTH) && p->playerstate != PST_DEAD)
|
||||
{
|
||||
p->health = p->mo->health = p->mo->SpawnHealth();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue