From 2e2d4073b83ae62507ae77a0381b750f123def9d Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Wed, 25 Oct 2017 15:04:08 +0100 Subject: [PATCH] Bombs should check for teams in team match, not regular match --- src/p_enemy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 90cda70e..d64a66d7 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -3924,7 +3924,7 @@ static inline boolean PIT_GrenadeRing(mobj_t *thing) if (thing->player && thing->player->kartstuff[k_bootaketimer]) return true; - if ((gametype == GT_CTF || gametype == GT_MATCH) + if ((gametype == GT_CTF || gametype == GT_TEAMMATCH) && !cv_friendlyfire.value && grenade->target->player && thing->player && grenade->target->player->ctfteam == thing->player->ctfteam) // Don't blow up at your teammates, unless friendlyfire is on return true;