diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 19:24:52 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-19 19:24:52 +0100 |
commit | 1042dbf51a17cd055e764df669a91007261d638a (patch) | |
tree | 2ffdd38a0588899fc69d71fe8fd16cb2db880967 | |
parent | Removed print_list (diff) | |
download | 42-cub3d-1042dbf51a17cd055e764df669a91007261d638a.tar.gz 42-cub3d-1042dbf51a17cd055e764df669a91007261d638a.tar.bz2 42-cub3d-1042dbf51a17cd055e764df669a91007261d638a.tar.xz 42-cub3d-1042dbf51a17cd055e764df669a91007261d638a.tar.zst 42-cub3d-1042dbf51a17cd055e764df669a91007261d638a.zip |
tweak
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 1 | ||||
-rw-r--r-- | src/ft_draw_textures.c | 8 | ||||
-rw-r--r-- | src/ft_key_loop.c | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 2c77758..baae914 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -62,6 +62,7 @@ typedef struct s_ray { uint16_t line_h; float wall_dist; + float mid_dist; float x_ray_pos; float y_ray_pos; float x_ray_dir; diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 25a6863..c718fd2 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -16,10 +16,10 @@ #include <stdio.h> /* -** 0 : no -** 1 : so -** 2 : ea -** 3 : we +** 1 : no +** 0 : so +** 3 : ea +** 4 : we ** 4 : sprite */ diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index b902e33..0556384 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -13,6 +13,7 @@ #include <libft.h> #include <cub3d.h> #include <stdint.h> +#include <stdio.h> static void ft_collision(float old_y, float old_x, t_player *pl, t_map *ml) |