diff options
author | aap <aap@papnet.eu> | 2020-03-27 18:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 18:41:22 +0100 |
commit | 29f69f6216fa629786415e8062ceab3d671ac912 (patch) | |
tree | a59a5d54c5a33cdc1c5bd91535331ec2b5955472 /src/peds | |
parent | Merge pull request #356 from blingu/master (diff) | |
parent | implemented some unused PS2 cams (diff) | |
download | re3-29f69f6216fa629786415e8062ceab3d671ac912.tar re3-29f69f6216fa629786415e8062ceab3d671ac912.tar.gz re3-29f69f6216fa629786415e8062ceab3d671ac912.tar.bz2 re3-29f69f6216fa629786415e8062ceab3d671ac912.tar.lz re3-29f69f6216fa629786415e8062ceab3d671ac912.tar.xz re3-29f69f6216fa629786415e8062ceab3d671ac912.tar.zst re3-29f69f6216fa629786415e8062ceab3d671ac912.zip |
Diffstat (limited to 'src/peds')
-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 ae24faa3..c8e8c4e4 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -12177,11 +12177,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)) { |