summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-11-01 20:42:45 +0100
committerRoman Masanin <36927roma@gmail.com>2020-11-01 20:42:45 +0100
commit5ea9285c5ba3720e9f227b61cc88fcdf2359d91b (patch)
tree9ffecdd42b7de851827608bf189a67f6244c7933 /src/audio
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miamiDev (diff)
downloadre3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar.gz
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar.bz2
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar.lz
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar.xz
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.tar.zst
re3-5ea9285c5ba3720e9f227b61cc88fcdf2359d91b.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 1fdba82a..8bc9c880 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2636,6 +2636,9 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
case OLD_DOOR:
m_sQueueSample.m_nSampleIndex = SFX_OLD_CAR_DOOR_CLOSE;
break;
+ case NEW_DOOR:
+ m_sQueueSample.m_nSampleIndex = SFX_NEW_CAR_DOOR_CLOSE;
+ break;
case TRUCK_DOOR:
m_sQueueSample.m_nSampleIndex = SFX_TRUCK_DOOR_CLOSE;
break;
@@ -2647,7 +2650,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
break;
}
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- m_sQueueSample.m_nCounter = event + 22;
+ m_sQueueSample.m_nCounter = event + 22; //originaly used m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i], which is same
if (params->m_pVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI)
m_sQueueSample.m_nFrequency = 28062;
else
@@ -3867,7 +3870,7 @@ cAudioManager::ProcessJumbo(cVehicleParams* params)
} else {
ProcessJumboTaxi();
}
- } else if (position <= TakeOffPoint + 300.0f) {
+ } else if (position <= TakeOffPoint + 300.0f) {
ProcessJumboTakeOff(plane);
} else if (position <= LandingPoint - 350.0f) {
ProcessJumboFlying();