diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-03-09 20:28:09 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-03-09 20:28:09 +0100 |
commit | 49750331b64cc7ecf77836bced39363bedc945a7 (patch) | |
tree | eb907af34f520054d66567ab53a511226052ca4a | |
parent | Norme is pretty bav (diff) | |
download | 42-cub3d-49750331b64cc7ecf77836bced39363bedc945a7.tar.gz 42-cub3d-49750331b64cc7ecf77836bced39363bedc945a7.tar.bz2 42-cub3d-49750331b64cc7ecf77836bced39363bedc945a7.tar.xz 42-cub3d-49750331b64cc7ecf77836bced39363bedc945a7.tar.zst 42-cub3d-49750331b64cc7ecf77836bced39363bedc945a7.zip |
gang_2
Diffstat (limited to '')
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | map/map_one.cub | 2 | ||||
-rw-r--r-- | src/ft_draw_sprite.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -170,7 +170,7 @@ fclean: clean re: fclean all #--------------------------------------------------------------------------------------------------# run: all - @./${NAME} "map/lvl_one.cub" + @./${NAME} "map/map_one.cub" #--------------------------------------------------------------------------------------------------# .PHONY: all clean clean fclean re run default #============================================== EOF ===============================================# diff --git a/map/map_one.cub b/map/map_one.cub index 6a8ad51..f4f9e91 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -1,4 +1,4 @@ -R 1600 1050 +R 1000 700 NO ./media/img/segfot_small.xpm SO ./media/img/segfot_small.xpm diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index 203c48d..faeec2b 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -97,7 +97,7 @@ void sprite->spriteheight * 128; sprite->tex_y = ((d * cl->tlist[4].img_h / 2) / sprite->spriteheight) / 128; - if (cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * + if (sprite->transformy > 0 && cl->tlist[4].ptr[sprite->tex_x * 4 + 4 * cl->tlist[4].img_h * sprite->tex_y] && cl->rlist.wall_dist_tab[sprite->x] > sprite->transformy) { |