mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 04:54:09 +00:00
fix enum edditing effects for oal target and small improvements
This commit is contained in:
parent
0f119ed371
commit
579d96534d
3 changed files with 28 additions and 27 deletions
|
@ -290,10 +290,11 @@ void
|
|||
cAudioManager::CalculateDistance(bool &distCalculated, float dist)
|
||||
{
|
||||
if (!distCalculated) {
|
||||
if (dist <= 0.0)
|
||||
m_sQueueSample.m_fDistance = 0.0;
|
||||
else
|
||||
if (dist > 0.0f)
|
||||
m_sQueueSample.m_fDistance = Sqrt(dist);
|
||||
|
||||
else
|
||||
m_sQueueSample.m_fDistance = 0.0f;
|
||||
distCalculated = true;
|
||||
}
|
||||
}
|
||||
|
@ -1297,7 +1298,7 @@ cAudioManager::ProcessVehicleEngine(cVehicleParams* params)
|
|||
}
|
||||
|
||||
void
|
||||
cAudioManager::UpdateGasPedalAudio(CVehicle* veh, eVehicleType vehType)
|
||||
cAudioManager::UpdateGasPedalAudio(CVehicle* veh, int vehType)
|
||||
{
|
||||
float gasPedal = Abs(veh->m_fGasPedal);
|
||||
float* gasPealAudioPtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue