修复宕机问题
This commit is contained in:
parent
02d4bf360f
commit
80324bd8b0
@ -3147,6 +3147,7 @@ void Creature::ShortFindPath()
|
||||
finaly_pos = left_pos;
|
||||
}
|
||||
glm::vec3 move_dir = finaly_pos - GetPos().ToGlmVec3();
|
||||
if (!GlmHelper::IsZero(move_dir)) {
|
||||
GlmHelper::Normalize(move_dir);
|
||||
glm::vec3 end_pos = start_pos + move_dir * GetSpeed() / 1.0f;
|
||||
|
||||
@ -3159,6 +3160,7 @@ void Creature::ShortFindPath()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
float Creature::GetSkillRaycastDistance()
|
||||
|
Loading…
x
Reference in New Issue
Block a user