summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-06 01:01:03 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-06 01:01:03 +0200
commit7f8a78e5decdf23bf0d06674c336f4e3169eaa6a (patch)
treeee0c2b666cacfd6f6a0ee9f36eca6237a78a6df2 /src/audio/AudioManager.cpp
parentMerge branch 'master' into garages_dev (diff)
downloadre3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.gz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.bz2
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.lz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.xz
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.tar.zst
re3-7f8a78e5decdf23bf0d06674c336f4e3169eaa6a.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 8e8d024a..6df5fd19 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -3515,9 +3515,9 @@ cAudioManager::ProcessCrane()
static const int intensity = 80;
if(crane) {
- if(crane->m_bCraneActive == 1) {
- if(crane->m_bCraneStatus) {
- m_sQueueSample.m_vecPos = crane->m_pObject->GetPosition();
+ if(crane->m_nCraneStatus == CCrane::ACTIVATED) {
+ if(crane->m_nCraneState != CCrane::IDLE) {
+ m_sQueueSample.m_vecPos = crane->m_pCraneEntity->GetPosition();
distSquared = GetDistanceSquared(&this->m_sQueueSample.m_vecPos);
if(distSquared < SQR(intensity)) {
CalculateDistance(distCalculated, distSquared);