mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 20:35:42 +00:00
Fix attractor even more
This commit is contained in:
parent
1b59b2c9bc
commit
937290db09
1 changed files with 2 additions and 2 deletions
|
@ -15403,7 +15403,7 @@ CPed::ProcessObjective(void)
|
||||||
CVector distance = m_nextRoutePointPos - GetPosition();
|
CVector distance = m_nextRoutePointPos - GetPosition();
|
||||||
distance.z = 0.0f;
|
distance.z = 0.0f;
|
||||||
if (m_objective == OBJECTIVE_GOTO_SHELTER_ON_FOOT) {
|
if (m_objective == OBJECTIVE_GOTO_SHELTER_ON_FOOT) {
|
||||||
if (m_nMoveState == PEDMOVE_RUN && distance.Magnitude() < SQR(2.0f)) {
|
if (m_nMoveState == PEDMOVE_RUN && distance.MagnitudeSqr() < SQR(2.0f)) {
|
||||||
SetMoveState(PEDMOVE_WALK);
|
SetMoveState(PEDMOVE_WALK);
|
||||||
bIsRunning = false;
|
bIsRunning = false;
|
||||||
}
|
}
|
||||||
|
@ -15413,7 +15413,7 @@ CPed::ProcessObjective(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_objective == OBJECTIVE_GOTO_ICE_CREAM_VAN_ON_FOOT) {
|
else if (m_objective == OBJECTIVE_GOTO_ICE_CREAM_VAN_ON_FOOT) {
|
||||||
if (m_nMoveState == PEDMOVE_RUN && distance.Magnitude() < SQR(4.0f)) {
|
if (m_nMoveState == PEDMOVE_RUN && distance.MagnitudeSqr() < SQR(4.0f)) {
|
||||||
SetMoveState(PEDMOVE_WALK);
|
SetMoveState(PEDMOVE_WALK);
|
||||||
bIsRunning = false;
|
bIsRunning = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue