mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +00:00
Don't reset the inventory of dead players
This commit is contained in:
parent
20adcecb1d
commit
842ef86e73
1 changed files with 1 additions and 1 deletions
|
@ -1307,7 +1307,7 @@ void G_PlayerFinishLevel (int player, EFinishLevelType mode, int flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clears the entire inventory and gives back the defaults for starting a game
|
// Clears the entire inventory and gives back the defaults for starting a game
|
||||||
if (flags & CHANGELEVEL_RESETINVENTORY)
|
if ((flags & CHANGELEVEL_RESETINVENTORY) && p->playerstate != PST_DEAD)
|
||||||
{
|
{
|
||||||
p->mo->ClearInventory();
|
p->mo->ClearInventory();
|
||||||
p->mo->GiveDefaultInventory();
|
p->mo->GiveDefaultInventory();
|
||||||
|
|
Loading…
Reference in a new issue