summaryrefslogtreecommitdiffstats
path: root/src/control/Phones.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-15 15:45:06 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-15 15:45:06 +0100
commit970f84514a45e0181bd05ae02493908ec86f5683 (patch)
tree37e568870361124e7e34dfe20a7f66af254a8d39 /src/control/Phones.cpp
parentRadio scroll to prev. station & radio off text (diff)
parentfixed water.dat code (diff)
downloadre3-970f84514a45e0181bd05ae02493908ec86f5683.tar
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.gz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.bz2
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.lz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.xz
re3-970f84514a45e0181bd05ae02493908ec86f5683.tar.zst
re3-970f84514a45e0181bd05ae02493908ec86f5683.zip
Diffstat (limited to 'src/control/Phones.cpp')
-rw-r--r--src/control/Phones.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp
index c951e868..4769559c 100644
--- a/src/control/Phones.cpp
+++ b/src/control/Phones.cpp
@@ -67,7 +67,7 @@ CPhoneInfo::Update(void)
} else {
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_PHONE);
if (player->m_nPedState == PED_MAKE_CALL)
- player->m_nPedState = PED_IDLE;
+ player->SetPedState(PED_IDLE);
}
}
bool notInCar;
@@ -114,7 +114,7 @@ CPhoneInfo::Update(void)
player->m_fRotationCur = angleToFace;
player->m_fRotationDest = angleToFace;
player->SetHeading(angleToFace);
- player->m_nPedState = PED_MAKE_CALL;
+ player->SetPedState(PED_MAKE_CALL);
CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_PHONE);
TheCamera.SetWideScreenOn();
playerInfo->MakePlayerSafe(true);
@@ -412,7 +412,7 @@ PhonePutDownCB(CAnimBlendAssociation *assoc, void *arg)
ped->bUpdateAnimHeading = true;
if (ped->m_nPedState == PED_MAKE_CALL)
- ped->m_nPedState = PED_IDLE;
+ ped->SetPedState(PED_IDLE);
}
void