From 99b7afe29d51529e1b2d08b2d68ebec152457253 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 15:19:51 +0100 Subject: Merged --- src/ft_click_close.c | 2 +- src/ft_get_player_spawn.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ft_click_close.c b/src/ft_click_close.c index 6c876ea..113c241 100644 --- a/src/ft_click_close.c +++ b/src/ft_click_close.c @@ -18,8 +18,8 @@ int ft_click_close(int keycode, t_cub *clist) { + (void)keycode; (void)clist; - ft_printf("Button [%d] pressed\n", keycode); exit(0); return (0); } diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c index fa99fdf..f5d2c87 100644 --- a/src/ft_get_player_spawn.c +++ b/src/ft_get_player_spawn.c @@ -82,8 +82,8 @@ void { if (ft_ischarset("NSEW", clist->mlist->map[y][x])) { - plist->pos_x = x; - plist->pos_y = y; + plist->pos_x = x + 0.5; + plist->pos_y = y + 0.5; ft_get_start_side(clist->mlist->map[y][x], clist->plist); return ; } -- cgit v1.2.3