diff options
| -rw-r--r-- | map/map_one.cub | 8 | ||||
| -rw-r--r-- | src/ft_parse_map.c | 14 | 
2 files changed, 18 insertions, 4 deletions
| diff --git a/map/map_one.cub b/map/map_one.cub index 4dad431..d66bea8 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -14,13 +14,13 @@ F 50,190,124  100102000000000001  1N1100000111000001  111111111111110011 -100000000011000001 -100100000000000001 -101100000111000001 +1000001     100001 +1001001     100001 +1011001     100001  111101111111110111  110000001101010111  100020000000000011  100000000000000011  110000001101010111  111101111111010111 -111111111111111111 +11111       1 1111 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); | 
