mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 08:11:49 +01:00
Various fixes
This commit is contained in:
parent
5993c66efb
commit
c22e59abab
@ -9132,6 +9132,9 @@ cAudioManager::ProcessVehicleSirenOrAlarm(cVehicleParams *params)
|
|||||||
CVehicle *veh = params->m_pVehicle;
|
CVehicle *veh = params->m_pVehicle;
|
||||||
if(veh->m_bSirenOrAlarm == 0 && veh->m_nAlarmState <= 0) return;
|
if(veh->m_bSirenOrAlarm == 0 && veh->m_nAlarmState <= 0) return;
|
||||||
|
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (params->m_pVehicle->m_status == STATUS_WRECKED) return;
|
||||||
|
#endif
|
||||||
CalculateDistance(params->m_bDistanceCalculated, params->m_fDistance);
|
CalculateDistance(params->m_bDistanceCalculated, params->m_fDistance);
|
||||||
m_sQueueSample.m_bVolume = ComputeVolume(80, 110.f, m_sQueueSample.m_fDistance);
|
m_sQueueSample.m_bVolume = ComputeVolume(80, 110.f, m_sQueueSample.m_fDistance);
|
||||||
if(m_sQueueSample.m_bVolume) {
|
if(m_sQueueSample.m_bVolume) {
|
||||||
|
@ -5246,6 +5246,7 @@ CMenuManager::PrintController(void)
|
|||||||
void
|
void
|
||||||
CMenuManager::PrintMap(void)
|
CMenuManager::PrintMap(void)
|
||||||
{
|
{
|
||||||
|
CFont::SetJustifyOn();
|
||||||
bMenuMapActive = true;
|
bMenuMapActive = true;
|
||||||
CRadar::InitFrontEndMap();
|
CRadar::InitFrontEndMap();
|
||||||
|
|
||||||
|
@ -2162,7 +2162,7 @@ CWeapon::MakePedsJumpAtShot(CPhysical *shooter, CVector *source, CVector *target
|
|||||||
&& ped->GetPosition().y > miny && ped->GetPosition().y < maxy
|
&& ped->GetPosition().y > miny && ped->GetPosition().y < maxy
|
||||||
&& ped->GetPosition().z > minz && ped->GetPosition().z < maxz )
|
&& ped->GetPosition().z > minz && ped->GetPosition().z < maxz )
|
||||||
{
|
{
|
||||||
if ( ped != FindPlayerPed() && (uint8)(ped->m_randomSeed ^ CGeneral::GetRandomNumber()) & 31 )
|
if ( ped != FindPlayerPed() && !((uint8)(ped->m_randomSeed ^ CGeneral::GetRandomNumber()) & 31) )
|
||||||
ped->SetEvasiveDive(shooter, 1);
|
ped->SetEvasiveDive(shooter, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user