Skip to content

Commit

Permalink
Fix airburst positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinslr committed Apr 7, 2024
1 parent 813890b commit 2a01ab4
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 2a01ab4

Please sign in to comment.