mirror of
https://github.com/halpz/re3.git
synced 2025-07-06 10:38:56 +00:00
fix enum edditing effects for oal target and small improvements
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user