mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 04:32:17 +00:00
Temp fix for autobuild: VC2008 doesn't define hypotf.
This was SVN commit r10021.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user