Skip to content

Commit

Permalink
Simplify calculate_passage
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe committed Nov 24, 2023
1 parent e8653ec commit 4b7d03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/graphics/src/collision/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub fn calculate_passage(layers: impl Iterator<Item = (i16, i16, CollisionType)>
at_least_one_layer_not_blank = true;
}
}
if passage & direction != 0 || passage & 0xf == 0xf {
if passage & direction != 0 {
computed_passage |= direction;
break;
} else if priority == 0 {
Expand Down

0 comments on commit 4b7d03c

Please sign in to comment.