diff options
author | aap <aap@papnet.eu> | 2020-03-26 14:16:06 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-03-27 10:04:45 +0100 |
commit | f0dfaac838fdbb90783609bf4e45518ccf853708 (patch) | |
tree | 0091bdfdf4a7149265af7a596906a9cf4f50a55c /src/peds | |
parent | Merge pull request #353 from Sergeanur/Debug (diff) | |
download | re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar.gz re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar.bz2 re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar.lz re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar.xz re3-f0dfaac838fdbb90783609bf4e45518ccf853708.tar.zst re3-f0dfaac838fdbb90783609bf4e45518ccf853708.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index db6b7ee2..b069afca 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -12169,11 +12169,11 @@ CPed::PlacePedOnDryLand(void) if (!CWorld::TestSphereAgainstWorld(potentialGround, 5.0f, nil, true, false, false, false, false, false)) return false; - CVector potentialGroundDist = CWorld::ms_testSpherePoint.point - GetPosition(); + CVector potentialGroundDist = gaTempSphereColPoints[0].point - GetPosition(); potentialGroundDist.z = 0.0f; potentialGroundDist.Normalise(); - CVector posToCheck = 0.5f * potentialGroundDist + CWorld::ms_testSpherePoint.point; + CVector posToCheck = 0.5f * potentialGroundDist + gaTempSphereColPoints[0].point; posToCheck.z = 3.0f + waterLevel; if (CWorld::ProcessVerticalLine(posToCheck, waterLevel - 1.0f, foundCol, foundEnt, true, true, false, true, false, false, false)) { |