summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-16 18:41:30 +0200
committeraap <aap@papnet.eu>2019-07-16 18:41:30 +0200
commit03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4 (patch)
treea1c757b03620883851b4ad72bfcc440ff6387af7 /src/peds
parentMerge pull request #137 from erorcun/erorcun (diff)
downloadre3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar.gz
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar.bz2
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar.lz
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar.xz
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.tar.zst
re3-03fc85bfe06b781a50ac2ea6dfb1b2f9871cfbf4.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 7e24faa6..e81dfa51 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -48,7 +48,6 @@ WRAPPER void CPed::RegisterThreatWithGangPeds(CEntity*) { EAXJMP(0x4E3870); }
WRAPPER void CPed::MakeChangesForNewWeapon(int8) { EAXJMP(0x4F2560); }
WRAPPER void CPed::SetSeek(CVector, float) { EAXJMP(0x4D14B0); }
WRAPPER bool CPed::Seek(void) { EAXJMP(0x4D1640); }
-WRAPPER void CPed::ClearAll(void) { EAXJMP(0x4C7F20); }
WRAPPER void CPed::SetWanderPath(int8) { EAXJMP(0x4D2750); }
WRAPPER void CPed::SetFollowPath(CVector) { EAXJMP(0x4D2EA0); }
@@ -3053,7 +3052,7 @@ CPed::CheckForPointBlankPeds(CPed *pedToVerify)
neededAngle = CGeneral::LimitRadianAngle(neededAngle);
m_fRotationCur = CGeneral::LimitRadianAngle(m_fRotationCur);
- float neededTurn = Abs(neededTurn - m_fRotationCur);
+ float neededTurn = Abs(neededAngle - m_fRotationCur);
if (neededTurn > PI)
neededTurn = 2*PI - neededTurn;