Skip to content

Commit

Permalink
Merge pull request #3062 from CombatExtended-Continued/projectile-shim
Browse files Browse the repository at this point in the history
Fix airburst positioning
  • Loading branch information
N7Huntsman authored Apr 8, 2024
2 parents 3b578c0 + 2a01ab4 commit 3b89997
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public override void Impact(Thing hitThing)
void HeightFuseAirBurst()
{
float f = (LastPos.y - detonationHeight) / (LastPos.y - ExactPosition.y);
ExactPosition = f * (LastPos - ExactPosition);
ExactPosition += f * (LastPos - ExactPosition);
if (!ExactPosition.ToIntVec3().IsValid)
{
Expand Down

0 comments on commit 3b89997

Please sign in to comment.