Skip to content

Commit

Permalink
Fixed Elevate random for negative value
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jan 7, 2024
1 parent 4ee6612 commit 5c78e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Tools/ElevateTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal override void Draw()
{
ZMode.ADD => tile.Z + value,
ZMode.SET => value,
ZMode.RANDOM => tile.Z + _random.Next(-value, value + 1),
ZMode.RANDOM => tile.Z + _random.Next(-Math.Abs(value), Math.Abs(value) + 1),
_ => throw new ArgumentOutOfRangeException()
});

Expand Down

0 comments on commit 5c78e7b

Please sign in to comment.