From 20a7a10c762d2d81d3f749d08d4da3f56a045dce Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 4 Feb 2020 23:45:21 +0100 Subject: Scale --- src/ft_parse_map.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_parse_map.c') diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 29f2c43..f5e491f 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -16,6 +16,7 @@ #include #include #include +#include static void ft_check_cub(const char *map_path, t_cub *clist) @@ -118,6 +119,8 @@ void ft_check_map_last_line(clist); ft_get_player_spawn(clist->plist, clist); ft_check_missing(clist); + clist->scale = ((uint16_t)clist->wlist->x_size / + (uint16_t)clist->map_w) - 2; ft_print_list(clist); close(fd); } -- cgit v1.2.3