Skip to content

Commit

Permalink
fix side type
Browse files Browse the repository at this point in the history
  • Loading branch information
stambolievv committed Jan 19, 2022
1 parent a8305ed commit 398eab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mechanics.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function collision(AA, BB) {
const crossHeight = heightHalf - Math.abs(diffY);

/* Pass the value of the tile to check if its painful or not. */
side.type = b.tileValue;
side.type = a.tileValue || b.tileValue;

if (crossWidth > crossHeight) {
if (diffY > 0) {
Expand Down

0 comments on commit 398eab0

Please sign in to comment.