aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawmap.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 20:25:06 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 20:25:06 +0100
commitec44882bde1d3004eb66f7c07a14950af5ef5bcf (patch)
tree97f6e2ea1d7d9bd7c913f55ae3b8339c86a5be70 /src/ft_drawmap.c
parentNice map drawing (diff)
download42-cub3d-ec44882bde1d3004eb66f7c07a14950af5ef5bcf.tar.gz
42-cub3d-ec44882bde1d3004eb66f7c07a14950af5ef5bcf.tar.bz2
42-cub3d-ec44882bde1d3004eb66f7c07a14950af5ef5bcf.tar.xz
42-cub3d-ec44882bde1d3004eb66f7c07a14950af5ef5bcf.tar.zst
42-cub3d-ec44882bde1d3004eb66f7c07a14950af5ef5bcf.zip
Even nicer
Diffstat (limited to 'src/ft_drawmap.c')
-rw-r--r--src/ft_drawmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c
index c0854e0..3466df0 100644
--- a/src/ft_drawmap.c
+++ b/src/ft_drawmap.c
@@ -17,6 +17,9 @@ ft_drawmap(t_cub *clist)
if (clist->map[x][y] == '1')
ft_drawsquare(40 + (y * 41), 40 + (x * 41),
clist->f_color, clist);
+ if (clist->map[x][y] == '0')
+ ft_drawsquare(40 + (y * 41), 40 + (x * 41),
+ clist->c_color, clist);
y++;
}
y = 0;