aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-21 18:21:32 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-21 18:21:32 +0100
commitcec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b (patch)
treedce83e3f9db785002b9694da4ac5e2ea43f4ad9e /src/ft_warp_level.c
parentGreat (diff)
download42-cub3d-cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b.tar.gz
42-cub3d-cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b.tar.bz2
42-cub3d-cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b.tar.xz
42-cub3d-cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b.tar.zst
42-cub3d-cec9b50f00a08d4c72cf4bcbb426fcfd76c8e80b.zip
Bug fix
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c4
1 files changed, 3 insertions, 1 deletions
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);
}