Skip to content

Commit

Permalink
Make y before x to fix y offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed May 17, 2024
1 parent da407ef commit 44c9f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphics/src/systems/draw_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ impl Ord for DrawOrder {
self.layer
.cmp(&other.layer)
.then(self.alpha.cmp(&other.alpha))
.then(self.x.cmp(&other.x))
.then(self.y.cmp(&other.y).reverse())
.then(self.x.cmp(&other.x))
.then(self.z.cmp(&other.z).reverse())
}
}
Expand Down

0 comments on commit 44c9f83

Please sign in to comment.