summaryrefslogtreecommitdiffstats
path: root/src/entities/Ped.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-26 21:33:58 +0200
committeraap <aap@papnet.eu>2019-06-26 21:33:58 +0200
commitd9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7 (patch)
tree3a8ed54f5a960bc2201389ecffd3f5aa32fbe51e /src/entities/Ped.cpp
parentCStreaming streams (diff)
downloadre3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar.gz
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar.bz2
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar.lz
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar.xz
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.tar.zst
re3-d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Ped.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Ped.cpp b/src/entities/Ped.cpp
index a80fc770..5a4c736e 100644
--- a/src/entities/Ped.cpp
+++ b/src/entities/Ped.cpp
@@ -608,7 +608,7 @@ CPed::IsPedHeadAbovePos(float zOffset)
RwMatrix mat;
CPedIK::GetWorldMatrix(GetNodeFrame(PED_HEAD), &mat);
- return zOffset + GetPosition().z >= mat.pos.z;
+ return zOffset + GetPosition().z < RwMatrixGetPos(&mat)->z;
}
void