diff options
author | aap <aap@papnet.eu> | 2019-06-26 21:33:58 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-26 21:33:58 +0200 |
commit | d9b3c82c5e43ef3cc271800ccd0fc79ead99c7b7 (patch) | |
tree | 3a8ed54f5a960bc2201389ecffd3f5aa32fbe51e /src/entities | |
parent | CStreaming streams (diff) | |
download | re3-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 'src/entities')
-rw-r--r-- | src/entities/Ped.cpp | 2 |
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 |