diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-27 20:25:06 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-01-27 20:25:06 +0100 |
commit | ec44882bde1d3004eb66f7c07a14950af5ef5bcf (patch) | |
tree | 97f6e2ea1d7d9bd7c913f55ae3b8339c86a5be70 | |
parent | Nice map drawing (diff) | |
download | 42-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 '')
-rw-r--r-- | map/map_two.cub | 1 | ||||
-rw-r--r-- | src/ft_drawmap.c | 3 |
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; |