mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 14:17:57 +03:00
Fixed origin_ratio uninitialized
This commit is contained in:
parent
6ff046ae29
commit
0ae1c8f771
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ bool Actor::Cover_SetPath(PathNode *node)
|
|||
enemy_origin = m_Enemy->origin;
|
||||
VectorSub2D(enemy_origin, origin, vDelta);
|
||||
|
||||
if (VectorLength2DSquared(vDelta) * 0.64f > Square(192)) {
|
||||
origin_ratio = VectorLength2DSquared(vDelta) * 0.64f;
|
||||
if (origin_ratio > Square(192)) {
|
||||
origin_ratio = Square(192);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue