From 0a85e75eb8445cda7ebb448beaf4332f301c5907 Mon Sep 17 00:00:00 2001 From: Sryder Date: Sat, 9 Jun 2018 16:42:03 +0100 Subject: [PATCH] Accidentally made HitEm sounds always play, even when hitting your own items --- src/k_kart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index a8993b6a..27080423 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1269,7 +1269,8 @@ void K_SpinPlayer(player_t *player, mobj_t *source) || (G_BattleGametype() && ((player->kartstuff[k_balloon] <= 0 && player->kartstuff[k_comebacktimer]) || player->kartstuff[k_comebackmode] == 1))) return; - K_PlayHitEmSound(source); + if (source && source != player->mo && source->player) + K_PlayHitEmSound(source); player->kartstuff[k_mushroomtimer] = 0; player->kartstuff[k_driftboost] = 0;