diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 14:47:59 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 14:47:59 +0100 |
commit | 558151cd594920e8322f53f382d88863a0fd6377 (patch) | |
tree | dd7fc5b3de1f873a0423734038d61bebffbb6290 /src/ft_draw_textures.c | |
parent | Removed bloat (diff) | |
download | 42-cub3d-558151cd594920e8322f53f382d88863a0fd6377.tar.gz 42-cub3d-558151cd594920e8322f53f382d88863a0fd6377.tar.bz2 42-cub3d-558151cd594920e8322f53f382d88863a0fd6377.tar.xz 42-cub3d-558151cd594920e8322f53f382d88863a0fd6377.tar.zst 42-cub3d-558151cd594920e8322f53f382d88863a0fd6377.zip |
Normed so far
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_textures.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index dcd36e7..126d0af 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -22,7 +22,8 @@ ** 4 : sprite */ -void ft_draw_texture(t_cub *cl, int x, int y, int tex_y) +void + ft_draw_texture(t_cub *cl, int x, int y, int tex_y) { float dist; float calc; @@ -43,7 +44,8 @@ void ft_draw_texture(t_cub *cl, int x, int y, int tex_y) cl->tlist[cl->w_side].img_h * tex_y + 2] / calc; } -void ft_choose_tex(t_cub *clist) +void + ft_choose_tex(t_cub *clist) { if (clist->rlist.sqy == clist->mlist.nlx && clist->rlist.sqx == clist->mlist.nly) |