From 18c61f3119e468e9a9418aef8aaeadcef090895c Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 10 May 2024 13:20:11 +0200 Subject: [PATCH] Make loop.c norme conform --- src/loop.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/loop.c b/src/loop.c index 18590a5..62b5ed9 100644 --- a/src/loop.c +++ b/src/loop.c @@ -6,7 +6,7 @@ /* By: dkaiser input_direction & LEFT) != 0); game->player.direction.y = ((game->input_direction & DOWN) != 0) - ((game->input_direction & UP) != 0); - game->player.position.x += game->player.direction.x * PLAYER_MOVE_SPEED * game->mlx->delta_time; - game->player.position.y += game->player.direction.y * PLAYER_MOVE_SPEED * game->mlx->delta_time; + game->player.position.x += game->player.direction.x * PLAYER_MOVE_SPEED + * game->mlx->delta_time; + game->player.position.y += game->player.direction.y * PLAYER_MOVE_SPEED + * game->mlx->delta_time; draw(game); } -- 2.47.2