In P_KillPlayer, check for the gametype's rules, instead of the gametype itself, before bursting rings.

This commit is contained in:
Jaime Passos 2019-12-27 17:22:55 -03:00
parent 4b2c88fab8
commit e03eaa554b
1 changed files with 1 additions and 1 deletions

View File

@ -3203,7 +3203,7 @@ static void P_KillPlayer(player_t *player, mobj_t *source, INT32 damage)
// Burst weapons and emeralds in Match/CTF only
if (source)
{
if (gametype == GT_MATCH || gametype == GT_TEAMMATCH || gametype == GT_CTF)
if ((gametyperules & GTR_RINGSLINGER) && !(gametyperules & GTR_TAG))
P_PlayerRingBurst(player, player->rings);
if (gametyperules & GTR_MATCHEMERALDS)
P_PlayerEmeraldBurst(player, false);