This commit is contained in:
aozhiwei 2022-12-14 18:15:53 +08:00
parent 18d3b78ba6
commit 9126cb486c

View File

@ -113,10 +113,8 @@ void MoveHelper::CalcTargetPos(float distance)
}
}
point.distance = owner_->GetPos().Distance2D2(point.tar_pos);
point.src_pos.x = owner_->GetPos().x;
point.src_pos.z = owner_->GetPos().y;
point.curr_pos.x = owner_->GetPos().x;
point.curr_pos.z = owner_->GetPos().y;
point.src_pos = owner_->GetPos();
point.curr_pos = owner_->GetPos();
if (point.tar_pos.x < 0 ||
point.tar_pos.z < 0) {