From de50b066cf2b446b2a58c12dde6ca57b338c3970 Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 20 Feb 2005 21:58:05 +0000 Subject: [PATCH] on incoming network packages that a player died, don't send any informations to others. --- src/player.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index ef555e7..3d2bbf8 100644 --- a/src/player.c +++ b/src/player.c @@ -1,4 +1,4 @@ -/* $Id: player.c,v 1.98 2005/02/20 19:11:21 stpohle Exp $ +/* $Id: player.c,v 1.99 2005/02/20 21:58:05 stpohle Exp $ * player.c - everything what have to do with the player */ #include @@ -561,8 +561,9 @@ player_died (_player * player, signed char dead_by, int network) player->state &= (0xFF - PSF_alife); player->dead_by = dead_by; special_clear (player - players); - if (GT_MP) + if (GT_MP && !network) net_game_send_player (player - players); + snd_play (SND_dead); if ((GT_SP || player == &players[bman.p_nr] || (IS_LPLAYER2 && player == &players[bman.p2_nr])