Doing this looks more appealing to me

This commit is contained in:
TehRealSalt 2018-09-22 20:15:12 -04:00
parent 8a06e78ab6
commit c63518e0b2

View file

@ -1734,16 +1734,11 @@ void P_DoPlayerExit(player_t *player)
{ {
sfxenum_t sfx_id; sfxenum_t sfx_id;
if (K_IsPlayerLosing(player)) if (K_IsPlayerLosing(player))
{
sfx_id = ((skin_t *)player->mo->skin)->soundsid[S_sfx[sfx_klose].skinsound]; sfx_id = ((skin_t *)player->mo->skin)->soundsid[S_sfx[sfx_klose].skinsound];
S_StartSound(NULL, sfx_id);
}
else else
{
sfx_id = ((skin_t *)player->mo->skin)->soundsid[S_sfx[sfx_kwin].skinsound]; sfx_id = ((skin_t *)player->mo->skin)->soundsid[S_sfx[sfx_kwin].skinsound];
S_StartSound(NULL, sfx_id); S_StartSound(NULL, sfx_id);
} }
}
else else
{ {
if (K_IsPlayerLosing(player)) if (K_IsPlayerLosing(player))