Skip to content

Commit 9982a3f

Browse files
committed
Ensure all types in the pong sample are double and not float/int
1 parent 5c0b0ce commit 9982a3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/samples/clock/pong.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ struct pong_time {
3737
struct pong {
3838
ge_GIF *gif;
3939
struct {
40-
float pos;
41-
float vel;
40+
double pos;
41+
double vel;
4242
} ball_x, ball_y;
4343
struct {
44-
int y;
45-
float target_y;
44+
double y;
45+
double target_y;
4646
} player_left, player_right;
4747
int player_loss;
4848
int game_stopped;

0 commit comments

Comments
 (0)