diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-18 19:02:35 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-18 19:02:35 +0100 |
commit | 967a795b455c97937504c2014184452637c0ec85 (patch) | |
tree | 0ff4d41a5a6e43db1919bc1f2c29dd9c517bd24d | |
parent | gng (diff) | |
download | 42-cub3d-967a795b455c97937504c2014184452637c0ec85.tar.gz 42-cub3d-967a795b455c97937504c2014184452637c0ec85.tar.bz2 42-cub3d-967a795b455c97937504c2014184452637c0ec85.tar.xz 42-cub3d-967a795b455c97937504c2014184452637c0ec85.tar.zst 42-cub3d-967a795b455c97937504c2014184452637c0ec85.zip |
?
Diffstat (limited to '')
-rw-r--r-- | src/ft_sort_s_t.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/ft_sort_s_t.c b/src/ft_sort_s_t.c deleted file mode 100644 index 270c974..0000000 --- a/src/ft_sort_s_t.c +++ /dev/null @@ -1,44 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_sort_s_t.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/24 20:22:45 by rbousset #+# #+# */ -/* Updated: 2020/03/09 18:56:01 by rbousset ### ########lyon.fr */ -/* */ -/* ************************************************************************** */ - -#include <libft.h> -#include <cub3d.h> -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> -#include <math.h> - -void - ft_sort_s_t(t_cub *cl, float dist_tab[8][4096]) -{ - uint16_t i; - int32_t tmp; - t_sprite *tmp_s; - - i = 0; - tmp_s = ft_calloc(sizeof(t_sprite), 4096); - while (i < cl->mlist.sprite_var) - { - if (dist_tab[i][0] < dist_tab[i + 1][0]) - { - ft_memcpy(tmp_s, cl->sprites[i], 4096); - ft_memcpy(cl->sprites[i], cl->sprites[i + 1], 4096); - ft_memcpy(cl->sprites[i + 1], tmp_s, 4096); - tmp = dist_tab[i][0]; - dist_tab[i][0] = dist_tab[i + 1][0]; - dist_tab[i + 1][0] = tmp; - i = 0; - } - i++; - printf("qwe%d\n", i); - } -} |