Respawn Random Items in all modes

This commit is contained in:
Sally Coolatta 2023-04-17 00:00:21 -04:00
parent 1a9841272b
commit 5b415de3fe

View file

@ -1144,28 +1144,9 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
{
target->fuse = 2;
}
else if (inDuel == false)
else
{
UINT8 i;
for (i = 0; i < MAXPLAYERS; i++)
{
if (&players[i] == source->player)
{
continue;
}
if (playeringame[i] && !players[i].spectator && players[i].lives != 0)
{
break;
}
}
if (i < MAXPLAYERS)
{
// Respawn items in multiplayer, don't respawn them when alone
target->fuse = 2*TICRATE + 2;
}
target->fuse = 2*TICRATE + 2;
}
}
}