aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-07 22:26:28 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-07 22:26:28 +0100
commitcfc2ab3f0c94234a98be573af394b23868166f84 (patch)
treed39ed1364e3c9ceb669decc625f4aa2c145cba8b /src/ft_draw_map.c
parentDIVINE INTELLECT (diff)
download42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.gz
42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.bz2
42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.xz
42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.zst
42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.zip
Got secret door bonus
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 2ca5f37..232891c 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -49,7 +49,7 @@ void
{
while (map[y][x])
{
- if (map[y][x] == '1')
+ if (ft_ischarset("1D", map[y][x]))
ft_draw_square(scale + 9 + (x * (scale)),
ft_y_offset(clist) - 9 + (y * (scale)), 0x00ca5422, clist);
else if (map[y][x] == '2')