mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 00:34:32 +00:00
Sound when passing
This commit is contained in:
parent
e6217cb206
commit
651b75e802
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue