mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-08 11:20:34 +00:00
Merge pull request #357 from aap/master
Finished CCam; various smaller things
This commit is contained in:
commit
29f69f6216
18 changed files with 4693 additions and 1266 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue