1
0
forked from 0ad/0ad

Fix projectiles fired from sky / missing cast in Vector3D in b1659e7618. Removes a trailing .0

Reported by: @faction02
Reviewed by: @wraitii
Differential Revision: https://code.wildfiregames.com/D2326
This was SVN commit r22990.
This commit is contained in:
Stan 2019-09-24 14:21:06 +00:00
parent f06907da02
commit 9425572bb1

View File

@ -503,7 +503,7 @@ Attack.prototype.PerformAttack = function(type, target)
impactAnimationLifetime = this.template[type].Projectile.ImpactAnimationLifetime || 0;
// TODO: Use unit rotation to implement x/z offsets.
let deltaLaunchPoint = new Vector3D(0, this.template[type].Projectile.LaunchPoint["@y"], 0.0);
let deltaLaunchPoint = new Vector3D(0, +this.template[type].Projectile.LaunchPoint["@y"], 0);
let launchPoint = Vector3D.add(selfPosition, deltaLaunchPoint);
let cmpVisual = Engine.QueryInterface(this.entity, IID_Visual);