...i am fool

This commit is contained in:
toasterbabe 2017-05-28 17:08:41 +01:00
parent 965e1f6b45
commit ce181da83c
2 changed files with 7 additions and 1 deletions

View file

@ -3287,8 +3287,10 @@ void A_ExtraLife(mobj_t *actor)
else else
{ {
if (!((netgame || multiplayer) && gametype == GT_COOP)) if (!((netgame || multiplayer) && gametype == GT_COOP))
{
P_GivePlayerLives(player, 1); P_GivePlayerLives(player, 1);
P_PlayLivesJingle(player); P_PlayLivesJingle(player);
}
else else
{ {
INT32 i; INT32 i;

View file

@ -933,11 +933,14 @@ void P_GivePlayerRings(player_t *player, INT32 num_rings)
if (gainlives) if (gainlives)
{ {
INT32 i;
if (!((netgame || multiplayer) && gametype == GT_COOP)) if (!((netgame || multiplayer) && gametype == GT_COOP))
{
P_GivePlayerLives(player, gainlives); P_GivePlayerLives(player, gainlives);
P_PlayLivesJingle(player); P_PlayLivesJingle(player);
}
else else
{
INT32 i;
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
{ {
if (!playeringame[i]) if (!playeringame[i])
@ -952,6 +955,7 @@ void P_GivePlayerRings(player_t *player, INT32 num_rings)
P_GivePlayerLives(&players[i], gainlives); P_GivePlayerLives(&players[i], gainlives);
P_PlayLivesJingle(&players[i]); P_PlayLivesJingle(&players[i]);
} }
}
} }
} }
} }