Bombs should check for teams in team match, not regular match
This commit is contained in:
1 parent
0bb3bc2b7e
commit
2e2d4073b8
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user