diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 20:09:29 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-29 20:09:29 +0100 |
commit | 99143755522989d11ee5dd9b42a665e2368c9481 (patch) | |
tree | fee854ebc0efa04766180eaf9bd5830261d0025c /src/ft_drawmap.c | |
parent | Perfect (diff) | |
download | 42-cub3d-99143755522989d11ee5dd9b42a665e2368c9481.tar.gz 42-cub3d-99143755522989d11ee5dd9b42a665e2368c9481.tar.bz2 42-cub3d-99143755522989d11ee5dd9b42a665e2368c9481.tar.xz 42-cub3d-99143755522989d11ee5dd9b42a665e2368c9481.tar.zst 42-cub3d-99143755522989d11ee5dd9b42a665e2368c9481.zip |
it's wonderful
Diffstat (limited to '')
-rw-r--r-- | src/ft_drawmap.c | 7 |
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; |