mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +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);
|
P_UndoPlayerMorph (p, p, 0, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resets player health to default
|
// Resets player health to default if not dead.
|
||||||
if (flags & CHANGELEVEL_RESETHEALTH)
|
if ((flags & CHANGELEVEL_RESETHEALTH) && p->playerstate != PST_DEAD)
|
||||||
{
|
{
|
||||||
p->health = p->mo->health = p->mo->SpawnHealth();
|
p->health = p->mo->health = p->mo->SpawnHealth();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue