This doesn't work

1.) I mixed it up, so opponent win/lose quotes would play globally instead of your own
2.) You can't even play skin-specific sounds globally, so it'd always be Sonic
This commit is contained in:
TehRealSalt 2018-08-28 22:50:53 -04:00
parent 2564d2f017
commit a745417a3f

View file

@ -1731,9 +1731,9 @@ void P_DoPlayerExit(player_t *player)
if (cv_kartvoices.value) if (cv_kartvoices.value)
{ {
if (K_IsPlayerLosing(player)) if (K_IsPlayerLosing(player))
S_StartSound((P_IsLocalPlayer(player) ? player->mo : NULL), sfx_klose); S_StartSound(player->mo, sfx_klose);
else else
S_StartSound((P_IsLocalPlayer(player) ? player->mo : NULL), sfx_kwin); S_StartSound(player->mo, sfx_kwin);
} }
player->exiting = 3*TICRATE; player->exiting = 3*TICRATE;