1
This commit is contained in:
commit
afa835f36d
@ -313,6 +313,10 @@ void CallFuncBuff::ProcFlashMove()
|
||||
new_pos.FromGlmVec3(hit_point);
|
||||
|
||||
glm::vec3 move_dir = hit_point - owner->GetPos().ToGlmVec3();
|
||||
if (GlmHelper::IsEqual2D(hit_point,
|
||||
owner->GetPos().ToGlmVec3())) {
|
||||
return;
|
||||
}
|
||||
GlmHelper::Normalize(move_dir);
|
||||
owner->SetMoveDir(move_dir);
|
||||
owner->SetAttackDir(move_dir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user