Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OmmyZhang authored Feb 6, 2024
1 parent 9d47abf commit 2552daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ pub fn game(props: &Props) -> Html {
);

let (dx, dy) = (x - ox, y - oy);
if dy > -2 * BALL_R * ratio {
if dy > -2.0 * BALL_R * ratio {
return;
}

Expand Down

0 comments on commit 2552daa

Please sign in to comment.