From 9982a3fb96497b3a125544e6325b26c49ba00140 Mon Sep 17 00:00:00 2001 From: "L. Pereira" Date: Wed, 19 Jun 2024 20:01:37 -0700 Subject: [PATCH] Ensure all types in the pong sample are double and not float/int --- src/samples/clock/pong.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/samples/clock/pong.h b/src/samples/clock/pong.h index 43c367939..6da18b9d1 100644 --- a/src/samples/clock/pong.h +++ b/src/samples/clock/pong.h @@ -37,12 +37,12 @@ struct pong_time { struct pong { ge_GIF *gif; struct { - float pos; - float vel; + double pos; + double vel; } ball_x, ball_y; struct { - int y; - float target_y; + double y; + double target_y; } player_left, player_right; int player_loss; int game_stopped;