From cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 21 Mar 2020 18:21:32 +0100 Subject: Bug fix --- src/ft_warp_level.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ft_warp_level.c') diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 107e709..af05b29 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -44,7 +44,7 @@ static void static void ft_player_keepings(t_cub *cl) { - int8_t tmp_life; + int16_t tmp_life; uint8_t tmp_has[2]; int8_t tmp_handles; @@ -135,6 +135,7 @@ int8_t char *tmp_mup; uint8_t isoldmus; + ft_printf("%hd\n", cl->plist.life); if (!(next_path = (char *)malloc((ft_strlen(path) + 1) * sizeof(char)))) return (-1); ft_sprintf(next_path, "%s", path); @@ -154,5 +155,6 @@ int8_t ft_wall_tex_init(cl); ft_weap_tex_init(cl); ft_memdel((void*)&next_path); + ft_printf("%hd\n", cl->plist.life); return (0); } -- cgit v1.2.3