summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 08:06:49 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 08:06:49 +0100
commit6d75374c414e266503a980c664038357cc3ed574 (patch)
treebd461441f709bdd4fe4bdf4f76127830abf39fff
parentSmall type use fixes (diff)
downloadre3-6d75374c414e266503a980c664038357cc3ed574.tar
re3-6d75374c414e266503a980c664038357cc3ed574.tar.gz
re3-6d75374c414e266503a980c664038357cc3ed574.tar.bz2
re3-6d75374c414e266503a980c664038357cc3ed574.tar.lz
re3-6d75374c414e266503a980c664038357cc3ed574.tar.xz
re3-6d75374c414e266503a980c664038357cc3ed574.tar.zst
re3-6d75374c414e266503a980c664038357cc3ed574.zip
-rw-r--r--src/audio/AudioLogic.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index b41c63fe..81ff1276 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -277,8 +277,7 @@ cAudioManager::ProcessSpecial()
}
CPlayerPed *playerPed = FindPlayerPed();
if (playerPed) {
- const PedState &state = playerPed->m_nPedState;
- if (state != PED_ENTER_CAR && state != PED_STEAL_CAR && !playerPed->bInVehicle)
+ if(playerPed->EnteringCar() && !playerPed->bInVehicle)
SampleManager.StopChannel(m_nActiveSamples);
}
}