Skip to content

Commit

Permalink
Tweak ExactPosition relative to current position
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinslr committed Apr 6, 2024
1 parent 09753d5 commit 813890b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void HeightFuseAirBurst()
{
float f = (LastPos.y - detonationHeight) / (LastPos.y - ExactPosition.y);
ExactPosition = f * (LastPos - ExactPosition);
ExactPosition += f * (LastPos - ExactPosition);
if (!ExactPosition.ToIntVec3().IsValid)
{
Destroy();
Expand Down

0 comments on commit 813890b

Please sign in to comment.