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