aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-12 23:47:37 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-12 23:47:37 +0100
commita2f0bde9da402ddfd47ec54d42b83585c3296ebf (patch)
treeff99c82f9a31064617953607eacd56fd1a862827 /src/ft_draw_map.c
parentSecured traps (diff)
download42-cub3d-a2f0bde9da402ddfd47ec54d42b83585c3296ebf.tar.gz
42-cub3d-a2f0bde9da402ddfd47ec54d42b83585c3296ebf.tar.bz2
42-cub3d-a2f0bde9da402ddfd47ec54d42b83585c3296ebf.tar.xz
42-cub3d-a2f0bde9da402ddfd47ec54d42b83585c3296ebf.tar.zst
42-cub3d-a2f0bde9da402ddfd47ec54d42b83585c3296ebf.zip
Secured parsing
Diffstat (limited to '')
-rw-r--r--src/ft_draw_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index fc2613b..5d37566 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -55,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 if (ft_ischarset("0LNSEWT", map[y][x]))
+ else if (ft_ischarset(FT_CHRST_MAP_NON_WALL, map[y][x]))
ft_draw_square(scale + 9 + (x * (scale)), ft_y_offset(clist)
- 9 + (y * (scale)), 0x006afa6a, clist);
x++;