aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-06 19:02:34 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-06 19:02:34 +0100
commit3f95779e54a44ab15d566fbcbdc965d842d12786 (patch)
treed551e073e7306ce75d2e63d80bc2478fc87c9a3b /src/ft_parse_map.c
parentxdpyinfo works on Linux (diff)
download42-cub3d-3f95779e54a44ab15d566fbcbdc965d842d12786.tar.gz
42-cub3d-3f95779e54a44ab15d566fbcbdc965d842d12786.tar.bz2
42-cub3d-3f95779e54a44ab15d566fbcbdc965d842d12786.tar.xz
42-cub3d-3f95779e54a44ab15d566fbcbdc965d842d12786.tar.zst
42-cub3d-3f95779e54a44ab15d566fbcbdc965d842d12786.zip
New scale function
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 85337f0..3014900 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -118,8 +118,7 @@ void
ft_check_map_last_line(clist);
ft_get_player_spawn(clist->plist, clist);
ft_check_missing(clist);
+ ft_set_minimap_scale(clist);
ft_print_list(clist);
- ((clist->scale = ((uint16_t)clist->wlist->x_size /
- (uint16_t)clist->map_w) - 1) < 1) ? (clist->scale = 1) : 0;
close(fd);
}