@@ -176,7 +176,7 @@ static Bool calcTrajectory(
176176
177177 // calculating the pitch requires a bit more effort.
178178 Real horizDistSqr = sqr (dx) + sqr (dy);
179- Real horizDist = sqrt (horizDistSqr);
179+ Real horizDist = Sqrt (horizDistSqr);
180180
181181 // calc the two possible pitches that will cover the given horizontal range.
182182 // (this is actually only true if dz==0, but is a good first guess)
@@ -290,7 +290,7 @@ static Bool calcTrajectory(
290290#endif
291291
292292 vx = velocity*cosPitches[preferred];
293- Real actualRange = (vx*(vz + sqrt (root)))/gravity;
293+ Real actualRange = (vx*(vz + Sqrt (root)))/gravity;
294294 const Real CLOSE_ENOUGH_RANGE = 5 .0f ;
295295 if (tooClose || (actualRange < horizDist - CLOSE_ENOUGH_RANGE))
296296 {
@@ -369,7 +369,7 @@ void DumbProjectileBehavior::projectileFireAtObjectOrPosition( const Object *vic
369369 // Some weapons want to scale their start speed to the range
370370 Real minRange = detWeap->getMinimumAttackRange ();
371371 Real maxRange = detWeap->getUnmodifiedAttackRange ();
372- Real range = sqrt (ThePartitionManager->getDistanceSquared ( projectile, &victimPosToUse, FROM_CENTER_2D ) );
372+ Real range = Sqrt (ThePartitionManager->getDistanceSquared ( projectile, &victimPosToUse, FROM_CENTER_2D ) );
373373 Real rangeRatio = (range - minRange) / (maxRange - minRange);
374374 m_flightPathSpeed = (rangeRatio * (weaponSpeed - minWeaponSpeed)) + minWeaponSpeed;
375375 }
@@ -611,7 +611,7 @@ UpdateSleepTime DumbProjectileBehavior::update()
611611 Real distVictimMovedSqr = sqr (delta.x ) + sqr (delta.y ) + sqr (delta.z );
612612 if (distVictimMovedSqr > 0 .1f )
613613 {
614- Real distVictimMoved = sqrtf (distVictimMovedSqr);
614+ Real distVictimMoved = Sqrt (distVictimMovedSqr);
615615 if (distVictimMoved > d->m_flightPathAdjustDistPerFrame )
616616 distVictimMoved = d->m_flightPathAdjustDistPerFrame ;
617617 delta.normalize ();
0 commit comments