diff options
author | Rudy Bousset <rbousset@z2r5p1.le-101.fr> | 2020-03-04 20:58:21 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p1.le-101.fr> | 2020-03-04 20:58:21 +0100 |
commit | 17dd409ee693459fd860ec4799a13ada19d869ca (patch) | |
tree | 41eec7ac88c740a801638e4e986711eb9890b38f /src | |
parent | Music on macOS is half bav (diff) | |
download | 42-cub3d-17dd409ee693459fd860ec4799a13ada19d869ca.tar.gz 42-cub3d-17dd409ee693459fd860ec4799a13ada19d869ca.tar.bz2 42-cub3d-17dd409ee693459fd860ec4799a13ada19d869ca.tar.xz 42-cub3d-17dd409ee693459fd860ec4799a13ada19d869ca.tar.zst 42-cub3d-17dd409ee693459fd860ec4799a13ada19d869ca.zip |
Maps is cool yo
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_parse_map.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 3c1fd9c..7dd652e 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -84,6 +84,19 @@ void ft_sprintf(mlist->filename, "%s", map_path); } +static void +ft_print_map(char **map) +{ + size_t i; + + i = 0; + while(map[i]) + { + ft_printf("[%s]\n", map[i]); + i++; + } +} + void ft_parse_map(const char *map_path, t_cub *clist) { @@ -108,6 +121,7 @@ void ft_get_player_spawn(&clist->plist, clist); ft_get_nlvl_pos(&clist->mlist); ft_check_missing(clist); + ft_print_map(clist->mlist.map); ft_set_minimap_scale(clist); clist->currlvl += 1; close(fd); |