aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--map/map_two.cub1
-rw-r--r--src/ft_drawmap.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/map/map_two.cub b/map/map_two.cub
deleted file mode 100644
index f445ac0..0000000
--- a/map/map_two.cub
+++ /dev/null
@@ -1 +0,0 @@
-R 123 123
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;