Sound when passing

This commit is contained in:
Sally Coolatta 2022-11-17 23:45:56 -05:00
parent e6217cb206
commit 651b75e802

View file

@ -9867,6 +9867,12 @@ void K_KartUpdatePosition(player_t *player)
if (position != oldposition) // Changed places?
{
if (position < oldposition && P_IsDisplayPlayer(player) == true)
{
// Play sound when getting closer to 1st.
S_StartSound(player->mo, sfx_mbs41);
}
player->positiondelay = POS_DELAY_TIME + 4; // Position number growth
}