Bombs should check for teams in team match, not regular match

This commit is contained in:
Sryder13 2017-10-25 15:04:08 +01:00
parent 0bb3bc2b7e
commit 2e2d4073b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;