From ff7ee4aa12b259ca5ced8c74186e619bee81895b Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Mon, 29 May 2017 22:19:31 +0100 Subject: [PATCH] ...forgot to check in these changes --- src/p_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 0be95e761..1158f7ea7 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -955,11 +955,11 @@ void P_GivePlayerLives(player_t *player, INT32 numlives) player->lives = 1; } -void P_GiveCoopLives(player_t player, INT32 numlives, boolean sound) +void P_GiveCoopLives(player_t *player, INT32 numlives, boolean sound) { if (!((netgame || multiplayer) && gametype == GT_COOP && cv_playstyle.value)) { - P_GivePlayerLives(player, 1); + P_GivePlayerLives(player, numlives); if (sound) P_PlayLivesJingle(player); } @@ -971,7 +971,7 @@ void P_GiveCoopLives(player_t player, INT32 numlives, boolean sound) if (!playeringame[i]) continue; - P_GivePlayerLives(&players[i], 1); + P_GivePlayerLives(&players[i], numlives); if (sound) P_PlayLivesJingle(&players[i]); }