aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_drawmap.c')
-rw-r--r--src/ft_drawmap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c
index 3466df0..172a637 100644
--- a/src/ft_drawmap.c
+++ b/src/ft_drawmap.c
@@ -16,10 +16,13 @@ ft_drawmap(t_cub *clist)
{
if (clist->map[x][y] == '1')
ft_drawsquare(40 + (y * 41), 40 + (x * 41),
+ 0x00aa99aa, clist);
+ else if (clist->map[x][y] == '0')
+ ft_drawsquare(40 + (y * 41), 40 + (x * 41),
clist->f_color, clist);
- if (clist->map[x][y] == '0')
+ else if (clist->map[x][y] == '2')
ft_drawsquare(40 + (y * 41), 40 + (x * 41),
- clist->c_color, clist);
+ 0x0033ccff, clist);
y++;
}
y = 0;