CDrone: Correct Z component calculation in TargetCover()

GM8E v0 multiplies by one in this case, not zero
This commit is contained in:
Lioncash 2020-06-11 10:12:43 -04:00
parent 73d6465095
commit 76a9d8f0f9
1 changed files with 5 additions and 3 deletions

View File

@ -536,10 +536,12 @@ void CDrone::TargetPlayer(CStateManager& mgr, EStateMsg msg, float dt) {
}
void CDrone::TargetCover(CStateManager& mgr, EStateMsg msg, float dt) {
if (msg != EStateMsg::Update)
if (msg != EStateMsg::Update) {
return;
/* Don't ask I have no idea.... */
const zeus::CVector3f vec = {1.f * x5e4_ * 0.f, 1.f * x5e4_ * 0.f, 1.f * x5e4_ * 0.f};
}
// Don't ask I have no idea....
const zeus::CVector3f vec{1.f * x5e4_ * 0.f, 1.f * x5e4_ * 0.f, 1.f * x5e4_ * 1.f};
ApplyImpulseWR(GetMoveToORImpulseWR(GetTransform().transposeRotate(vec), 1.f), {});
}