diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_lists.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index bd2ae74..d480912 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -28,7 +28,7 @@ t_rgb return (rgb); } -static t_player +t_player ft_init_player(void) { t_player plist; @@ -43,6 +43,7 @@ static t_player plist.dir_y = 0; plist.plane_x = 0; plist.plane_y = 0.66; + plist.life = 100; return (plist); } @@ -73,6 +74,7 @@ static int8_t cl->key_input[i] = -1; cl->ishud = 0; cl->isoldmus = 0; + cl->doicast = 1; cl->f_rgb = ft_init_rgb(); cl->c_rgb = ft_init_rgb(); cl->rlist = ft_init_s_ray(); |