Temp fix for autobuild: VC2008 doesn't define hypotf.

This was SVN commit r10021.
This commit is contained in:
historic_bruno
2011-08-17 04:34:20 +00:00
parent 7679d1073b
commit 7bd2f1c925
@@ -196,7 +196,7 @@ void CCmpProjectileManager::LaunchProjectile(entity_id_t source, CFixedVector3D
projectile.targetEnt = targetEnt;
CVector3D offset = projectile.target - projectile.pos;
float horizDistance = hypotf(offset.X, offset.Z);
float horizDistance = hypot(offset.X, offset.Z); // TODO: Fix missing hypotf for VC2008
projectile.speedFactor = 1.f;
projectile.timeLeft = horizDistance / speed.ToFloat();