mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-25 01:01:49 +01:00
fix debug
This commit is contained in:
parent
fbe09534d9
commit
67701df91f
@ -2019,16 +2019,13 @@ void CCarCtrl::DragCarToPoint(CVehicle* pVehicle, CVector* pPoint)
|
|||||||
|
|
||||||
float CCarCtrl::FindSpeedMultiplier(float angleChange, float minAngle, float maxAngle, float coef)
|
float CCarCtrl::FindSpeedMultiplier(float angleChange, float minAngle, float maxAngle, float coef)
|
||||||
{
|
{
|
||||||
float actual = ((float(*)(float, float, float, float))(0x41D980))(angleChange, minAngle, maxAngle, coef);
|
|
||||||
float angle = Abs(LimitRadianAngle(angleChange));
|
float angle = Abs(LimitRadianAngle(angleChange));
|
||||||
float n = angle - minAngle;
|
float n = angle - minAngle;
|
||||||
n = max(0.0f, n);
|
n = max(0.0f, n);
|
||||||
float d = maxAngle - minAngle;
|
float d = maxAngle - minAngle;
|
||||||
float mult = 1.0f - n / d * (1.0f - coef);
|
float mult = 1.0f - n / d * (1.0f - coef);
|
||||||
if (n > d)
|
if (n > d)
|
||||||
return coef == actual ? coef : ASSERT(0), coef;
|
return coef;
|
||||||
if (ABS(mult - actual) > 0.01f)
|
|
||||||
ASSERT(0);
|
|
||||||
return mult;
|
return mult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user