Skip to content

Commit

Permalink
Fix ClampCoordinate logic that was setting Z coordinate to 15 all the…
Browse files Browse the repository at this point in the history
… time

[GH: Fixes #117]
  • Loading branch information
luan committed Jan 9, 2017
1 parent 30419d6 commit 86f202a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tibialyzer/Structures/Coordinate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Coordinate(int x, int y, int z) {
public void ClampCoordinate() {
this.x = Math.Min(Math.Max(x, 0), MaxWidth);
this.y = Math.Min(Math.Max(y, 0), MaxHeight);
this.z = Math.Min(Math.Max(x, 0), MaxZ);
this.z = Math.Min(Math.Max(z, 0), MaxZ);
}
}

Expand Down

0 comments on commit 86f202a

Please sign in to comment.