aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 02:26:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 02:26:36 +0100
commit032d8b3a30272fae40767ffe5952e0a5cc979b4a (patch)
tree24b9023a03f447cf4d88f11e5a3b6e95243a35aa /src/ft_draw_map.c
parentGood as it is (diff)
download42-cub3d-032d8b3a30272fae40767ffe5952e0a5cc979b4a.tar.gz
42-cub3d-032d8b3a30272fae40767ffe5952e0a5cc979b4a.tar.bz2
42-cub3d-032d8b3a30272fae40767ffe5952e0a5cc979b4a.tar.xz
42-cub3d-032d8b3a30272fae40767ffe5952e0a5cc979b4a.tar.zst
42-cub3d-032d8b3a30272fae40767ffe5952e0a5cc979b4a.zip
Fixed minimap
Diffstat (limited to 'src/ft_draw_map.c')
-rw-r--r--src/ft_draw_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index acf671a..2ca5f37 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -10,6 +10,7 @@
/* */
/* ************************************************************************** */
+#include <libft.h>
#include <cub3d.h>
#include <stdint.h>
@@ -54,7 +55,7 @@ void
else if (map[y][x] == '2')
ft_draw_square(scale + 9 + (x * (scale)),
ft_y_offset(clist) - 9 + (y * (scale)), 0x0033ccff, clist);
- else
+ else if (ft_ischarset("0LNSEW", map[y][x]))
ft_draw_square(scale + 9 + (x * (scale)), ft_y_offset(clist)
- 9 + (y * (scale)), 0x006afa6a, clist);
x++;