From 785440c60b469b8e8072b781cd74d9df3646e3ab Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 11 Nov 2024 17:20:23 +0100 Subject: [PATCH] build: compilation fixed on macos --- .clangd | 2 +- .gitignore | 1 + Makefile | 4 ++-- includes/cub3d_struct.h | 5 ++--- sources/main.c | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.clangd b/.clangd index b110e2d..94d19c1 100644 --- a/.clangd +++ b/.clangd @@ -1,4 +1,4 @@ -CompilerFlags: +CompileFlags: Add: - "-xc" - "-I/home/rparodi/Documents/cub3d/includes" diff --git a/.gitignore b/.gitignore index 7d1ac64..b6c78b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ Cub3D build/ to_do* +.cache/ # Prerequisites *.d diff --git a/Makefile b/Makefile index a4a25f9..34627ca 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/09 01:52:06 by bgoulard ### ########.fr # +# Updated: 2024/11/11 17:18:13 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -26,7 +26,7 @@ CFLAGS += -g3 -MMD # CFLAGS += -fsanitize=address # CFLAGS += -fsanitize=thread -INCLUDES = -I ./includes -I ./includes/include -I ./minilibx-linux +INCLUDES = -I /opt/X11/include -I ./includes -I ./includes/include -I ./minilibx-linux # Paths LIBFT_DIR = ./libft diff --git a/includes/cub3d_struct.h b/includes/cub3d_struct.h index fb1f140..719ec52 100644 --- a/includes/cub3d_struct.h +++ b/includes/cub3d_struct.h @@ -6,7 +6,7 @@ /* By: bgoulard +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/08 23:55:29 by bgoulard #+# #+# */ -/* Updated: 2024/11/10 05:37:11 by bgoulard ### ########.fr */ +/* Updated: 2024/11/11 17:04:46 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -72,8 +72,7 @@ typedef struct s_map typedef struct s_player { t_dpoint pos; - t_dpoint dir; - t_dpoint view; + double view; } t_player; // -- cli utils diff --git a/sources/main.c b/sources/main.c index e757390..957569a 100644 --- a/sources/main.c +++ b/sources/main.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/30 16:30:03 by rparodi #+# #+# */ -/* Updated: 2024/11/10 05:48:09 by bgoulard ### ########.fr */ +/* Updated: 2024/11/11 17:18:27 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */