mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
fix
This commit is contained in:
parent
e970e5f246
commit
8f2abc6750
@ -249,7 +249,7 @@ CCopPed::ArrestPlayer(void)
|
|||||||
CPed *suspect = (CPed*)m_pSeekTarget;
|
CPed *suspect = (CPed*)m_pSeekTarget;
|
||||||
if (suspect) {
|
if (suspect) {
|
||||||
if (suspect->CanSetPedState())
|
if (suspect->CanSetPedState())
|
||||||
SetPedState(PED_ARRESTED);
|
suspect->SetPedState(PED_ARRESTED);
|
||||||
|
|
||||||
if (suspect->bInVehicle && m_pMyVehicle && suspect->m_pMyVehicle == m_pMyVehicle) {
|
if (suspect->bInVehicle && m_pMyVehicle && suspect->m_pMyVehicle == m_pMyVehicle) {
|
||||||
|
|
||||||
|
@ -812,8 +812,7 @@ CPed::RestorePreviousState(void)
|
|||||||
SetWanderPath(m_nPedState == PED_FOLLOW_PATH ? m_nPathDir : CGeneral::GetRandomNumber() & 7);
|
SetWanderPath(m_nPedState == PED_FOLLOW_PATH ? m_nPathDir : CGeneral::GetRandomNumber() & 7);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PedState oldState = m_nLastPedState;
|
SetPedState(m_nLastPedState);
|
||||||
SetPedState(oldState);
|
|
||||||
SetMoveState((eMoveState) m_nPrevMoveState);
|
SetMoveState((eMoveState) m_nPrevMoveState);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1602,7 +1601,7 @@ CPed::ClearAll(void)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
SetPedState(PED_NONE);
|
SetPedState(PED_NONE);
|
||||||
m_nMoveState = PEDMOVE_NONE;
|
SetMoveState(PEDMOVE_NONE);
|
||||||
m_pSeekTarget = nil;
|
m_pSeekTarget = nil;
|
||||||
m_vecSeekPos = CVector(0.0f, 0.0f, 0.0f);
|
m_vecSeekPos = CVector(0.0f, 0.0f, 0.0f);
|
||||||
m_fleeFromPos = CVector2D(0.0f, 0.0f);
|
m_fleeFromPos = CVector2D(0.0f, 0.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user