mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 01:29:16 +01:00
cVehicleParams ctor
This commit is contained in:
parent
7a7061ea92
commit
2b96be0418
@ -579,14 +579,13 @@ cAudioManager::ProcessVehicle(CVehicle *veh)
|
|||||||
m_sQueueSample.m_vecPos = veh->GetPosition();
|
m_sQueueSample.m_vecPos = veh->GetPosition();
|
||||||
|
|
||||||
params.m_bDistanceCalculated = false;
|
params.m_bDistanceCalculated = false;
|
||||||
params.m_fDistance = GetDistanceSquared(m_sQueueSample.m_vecPos);
|
|
||||||
params.m_pVehicle = veh;
|
params.m_pVehicle = veh;
|
||||||
params.m_pTransmission = nil;
|
params.m_fDistance = GetDistanceSquared(m_sQueueSample.m_vecPos);
|
||||||
params.m_nIndex = 0;
|
|
||||||
params.m_fVelocityChange = 0.0f;
|
|
||||||
|
|
||||||
if (handling != nil)
|
if (handling != nil)
|
||||||
params.m_pTransmission = &handling->Transmission;
|
params.m_pTransmission = &handling->Transmission;
|
||||||
|
else
|
||||||
|
params.m_pTransmission = nil;
|
||||||
|
|
||||||
params.m_nIndex = veh->GetModelIndex() - MI_FIRST_VEHICLE;
|
params.m_nIndex = veh->GetModelIndex() - MI_FIRST_VEHICLE;
|
||||||
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)
|
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)
|
||||||
|
@ -150,6 +150,16 @@ public:
|
|||||||
cTransmission *m_pTransmission;
|
cTransmission *m_pTransmission;
|
||||||
int32 m_nIndex;
|
int32 m_nIndex;
|
||||||
float m_fVelocityChange;
|
float m_fVelocityChange;
|
||||||
|
|
||||||
|
cVehicleParams()
|
||||||
|
{
|
||||||
|
m_bDistanceCalculated = false;
|
||||||
|
m_fDistance = 0.0f;
|
||||||
|
m_pVehicle = 0;
|
||||||
|
m_pTransmission = nil;
|
||||||
|
m_nIndex = 0;
|
||||||
|
m_fVelocityChange = 0.0f;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
VALIDATE_SIZE(cVehicleParams, 0x18);
|
VALIDATE_SIZE(cVehicleParams, 0x18);
|
||||||
|
Loading…
Reference in New Issue
Block a user