From e58fd78ef7fc85a44ed247da71c96cfbb31c47c6 Mon Sep 17 00:00:00 2001 From: kinou-p Date: Tue, 14 Jun 2022 16:01:31 +0200 Subject: [PATCH] add player angle --- srcs/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/main.c b/srcs/main.c index 3591216..9026c8a 100644 --- a/srcs/main.c +++ b/srcs/main.c @@ -6,7 +6,7 @@ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/02/13 16:42:55 by apommier #+# #+# */ -/* Updated: 2022/06/14 15:59:20 by apommier ### ########.fr */ +/* Updated: 2022/06/14 16:01:15 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ @@ -93,7 +93,7 @@ void print_line(t_data *img, double x, double y) int key_pressed(int type, t_data *img) { - if (code == 65307) + if (type == 65307) quit_game(img); if (type == 'w') img->player.front = 1;