Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
updated #65
Browse files Browse the repository at this point in the history
  • Loading branch information
OggyOggelito committed Mar 6, 2024
1 parent 8483483 commit 28050db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void test_ball_gravity()
// If the ball is high enough, it simply drops
const double initial_y = 1.2; // that is, higher than the drop rate
// tried this line to fix the "undeclared use of y_high"
const double y_high = 0;
double y_high = 0;
b.set_y(initial_y);
b.drop(bounce_speed);
const double y_first_bounce = y_high - bounce_speed;
Expand Down

0 comments on commit 28050db

Please sign in to comment.