Skip to content

Commit

Permalink
Fix bug where ground raising tools could raise terrain all alongside …
Browse files Browse the repository at this point in the history
…the edge of the map when used on the (visually) easternmost edge of the map
  • Loading branch information
Rampastring committed Mar 11, 2024
1 parent eeb621c commit 996552a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public FSRaiseGroundMutation(IMutationTarget mutationTarget, Point2D originCell,
// Pre-ramp-placement height fix checks
private static readonly TransitionRampInfo[] heightFixers = new[]
{
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Equal, HCT.Equal }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Equal, HCT.Equal, HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Equal, HCT.Equal }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Higher }, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ private void ApplyAutoLAT()
};

// Pre-ramp-placement height fix checks
private static readonly TransitionRampInfo[] heightFixers = new[]
private static readonly TransitionRampInfo[] heightFixers = new TransitionRampInfo[]
{
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Equal, HCT.Equal }, 1),
};

protected override TransitionRampInfo[] GetTransitionRampInfos() => transitionRampInfos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ public RaiseGroundMutation(IMutationTarget mutationTarget, Point2D originCell, B
};

// Pre-ramp-placement height fix checks
private static readonly TransitionRampInfo[] heightFixers = new[]
private static readonly TransitionRampInfo[] heightFixers = new TransitionRampInfo[]
{
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Equal, HCT.Equal }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Equal, HCT.Equal, HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Higher, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Equal, HCT.Equal }, 1),
new TransitionRampInfo(RampType.None, new() { HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Equal, HCT.Equal, HCT.Higher, HCT.Higher }, 1),
Expand Down

0 comments on commit 996552a

Please sign in to comment.