Skip to content

Commit

Permalink
Merge pull request Ash-LikeSnow#72 from BDCarrillo/master
Browse files Browse the repository at this point in the history
TravelTo estimation bugfix
  • Loading branch information
BDCarrillo authored Jun 29, 2024
2 parents eebca50 + d4bdff7 commit 59830d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Scripts/CoreSystems/Projectiles/Projectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,7 @@ internal bool TrajectoryEstimation(WeaponDefinition.AmmoDef ammoDef, ref Vector3

var targetPos = eTarget != null ? eTarget.PositionComp.WorldAABB.Center : pTarget.Position;

if (aConst.FragPointType == PointTypes.Direct)
if (aConst.TimedFragments && aConst.FragPointType == PointTypes.Direct)
{
targetDirection = Vector3D.Normalize(targetPos - Position);
estimatedPosition = targetPos;
Expand Down

0 comments on commit 59830d2

Please sign in to comment.