From 25020e81ba926f3dbcae8feaf0ac1c558177e6cf Mon Sep 17 00:00:00 2001 From: salad Date: Sat, 28 Mar 2020 15:55:53 +0100 Subject: normed --- src/ft_sort_s_t.c | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'src/ft_sort_s_t.c') diff --git a/src/ft_sort_s_t.c b/src/ft_sort_s_t.c index 0f87e9f..28a372d 100644 --- a/src/ft_sort_s_t.c +++ b/src/ft_sort_s_t.c @@ -34,26 +34,24 @@ float } static void -ft_init_st(t_cub *cl, int32_t *st_o, float **dist_tab) + ft_init_st(t_cub *cl, int32_t *st_o, float **dist_tab) { int8_t i; int8_t j; j = 0; - i = -1; + i = -1; while (++i < FT_TOTAL_SPRT) - { - st_o[i] = -1; - } - i = -1; + st_o[i] = -1; + i = -1; while (++i < FT_TOTAL_SPRT) { - if (cl->sprites[i][0].exists == 1) - { - st_o[j] = i; - ft_memcpy(dist_tab[j], dist_tab[i], 4096); - j++; - } + if (cl->sprites[i][0].exists == 1) + { + st_o[j] = i; + ft_memcpy(dist_tab[j], dist_tab[i], 4096); + j++; + } } } @@ -88,10 +86,6 @@ void } } i = -1; - ft_printf("------------------------------\n"); - while (++i < FT_TOTAL_SPRT + 1) - ft_printf("%d\n", cl->mlist.st_o[i]); - i = -1; while (++i < FT_TOTAL_SPRT + 1) ft_memdel((void*)&dist_tab[i]); ft_memdel((void*)&dist_tab); -- cgit v1.2.3