This commit is contained in:
Sergeanur 2020-12-15 05:11:45 +02:00
parent e970e5f246
commit 8f2abc6750
2 changed files with 3 additions and 4 deletions

View file

@ -249,7 +249,7 @@ CCopPed::ArrestPlayer(void)
CPed *suspect = (CPed*)m_pSeekTarget;
if (suspect) {
if (suspect->CanSetPedState())
SetPedState(PED_ARRESTED);
suspect->SetPedState(PED_ARRESTED);
if (suspect->bInVehicle && m_pMyVehicle && suspect->m_pMyVehicle == m_pMyVehicle) {

View file

@ -812,8 +812,7 @@ CPed::RestorePreviousState(void)
SetWanderPath(m_nPedState == PED_FOLLOW_PATH ? m_nPathDir : CGeneral::GetRandomNumber() & 7);
break;
default:
PedState oldState = m_nLastPedState;
SetPedState(oldState);
SetPedState(m_nLastPedState);
SetMoveState((eMoveState) m_nPrevMoveState);
break;
}
@ -1602,7 +1601,7 @@ CPed::ClearAll(void)
return;
SetPedState(PED_NONE);
m_nMoveState = PEDMOVE_NONE;
SetMoveState(PEDMOVE_NONE);
m_pSeekTarget = nil;
m_vecSeekPos = CVector(0.0f, 0.0f, 0.0f);
m_fleeFromPos = CVector2D(0.0f, 0.0f);