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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c
index fb5473e..ff5363b 100644
--- a/src/ft_drawmap.c
+++ b/src/ft_drawmap.c
@@ -30,12 +30,12 @@ static void
if (map[y][x] == '1')
ft_drawsquare(40 + (x * 41), 40 + (y * 41),
0x00aa99aa, clist);
- else if (map[y][x] == '0')
- ft_drawsquare(40 + (x * 41), 40 + (y * 41),
- clist->f_color, clist);
else if (map[y][x] == '2')
ft_drawsquare(40 + (x * 41), 40 + (y * 41),
0x0033ccff, clist);
+ else
+ ft_drawsquare(40 + (x * 41), 40 + (y * 41),
+ clist->f_color, clist);
x++;
}
x = 0;