Rename ebx to momentum

This commit is contained in:
Gymnasiast 2021-02-09 20:32:05 +01:00
parent 45464cddeb
commit 25b26e769d
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 3 additions and 3 deletions

View File

@ -6468,7 +6468,7 @@ int32_t Vehicle::UpdateMotionDodgems()
return _vehicleMotionTrackFlags;
}
int32_t ebx = (speed * mass) >> 2;
int32_t momentum = (speed * mass) >> 2;
int32_t _eax = speed << 14;
if (HasUpdateFlag(VEHICLE_UPDATE_FLAG_REVERSING_SHUTTLE))
{
@ -6476,8 +6476,8 @@ int32_t Vehicle::UpdateMotionDodgems()
}
_eax -= velocity;
_eax *= powered_acceleration * 2;
if (ebx != 0)
_eax /= ebx;
if (momentum != 0)
_eax /= momentum;
acceleration = _eax - eax;
return _vehicleMotionTrackFlags;