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