CAtomicBeta: Correct division arithmetic error in Think()

This is supposed to be a multiplication, not a division (at least this
is what v0-00 does).
This commit is contained in:
Lioncash 2020-02-12 04:57:03 -05:00
parent 61f9adfa70
commit da4dde2437
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ void CAtomicBeta::Think(float dt, CStateManager& mgr) {
if (!movementVec.isZero()) if (!movementVec.isZero())
x450_bodyController->GetCommandMgr().DeliverCmd(CBCLocomotionCmd(movementVec, x5f4_, 1.f)); x450_bodyController->GetCommandMgr().DeliverCmd(CBCLocomotionCmd(movementVec, x5f4_, 1.f));
float mag = const float mag =
x63c_ * std::max(1.f - (mgr.GetPlayer().GetTranslation() - GetTranslation()).magSquared() / (x640_ / x640_), 0.f); x63c_ * std::max(1.f - (mgr.GetPlayer().GetTranslation() - GetTranslation()).magSquared() / (x640_ * x640_), 0.f);
if (!zeus::close_enough(mag, 0.f)) if (!zeus::close_enough(mag, 0.f))
mgr.GetPlayerState()->GetStaticInterference().AddSource(GetUniqueId(), mag, 0.5f); mgr.GetPlayerState()->GetStaticInterference().AddSource(GetUniqueId(), mag, 0.5f);