From ab4e7e70342fcb8942b1c09b80abc51d95cfecc8 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Thu, 1 Jun 2023 13:49:12 +0200 Subject: [PATCH] =?UTF-8?q?=C3=A7a=20compile=20maintenant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 ++-- game/init.c | 6 +++--- libftx/gnl/Makefile | 4 ++-- libftx/printf/Makefile | 4 ++-- maps/test1.cub | 11 ++--------- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 79b9efa..258d89e 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,9 @@ SRCS := ${SRCS_MAP} \ ${SRCS_GAME} OBJS := ${SRCS:.c=.o} -CC := clang +CC := gcc LIBS := libftx/libftx.a MLX42/build/libmlx42.a -ldl -lglfw -lm -CFLAGS := -g -Wall -Wextra -Werror -Wno-conversion #-Ofast +CFLAGS := -g -Wall -Wextra -Werror #-Wno-conversion -Ofast -fsanitize=leak NAME := cub3D all: ${NAME} diff --git a/game/init.c b/game/init.c index 62c161c..1512815 100644 --- a/game/init.c +++ b/game/init.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/27 14:50:22 by erey-bet #+# #+# */ -/* Updated: 2023/05/19 17:03:52 by erey-bet ### ########.fr */ +/* Updated: 2023/06/01 13:28:15 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,8 +14,8 @@ void init_ply(t_map map, t_ply *ply) { - ply->pos_x = map.ply_x - 0.5; - ply->pos_y = map.ply_y - 0.5; + ply->pos_x = map.ply_x + 0.5; + ply->pos_y = map.ply_y + 0.5; ply->dir_x = 0.0; ply->dir_y = 0.0; if (map.direction == 'N') diff --git a/libftx/gnl/Makefile b/libftx/gnl/Makefile index 66104cb..d714106 100644 --- a/libftx/gnl/Makefile +++ b/libftx/gnl/Makefile @@ -6,7 +6,7 @@ # By: cchauvet