diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 10:19:22 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-11 10:19:22 +0100 |
commit | 537ace5d3615855ad2e236ab6f94862241ac71c4 (patch) | |
tree | f61b63301e6064adddcc7820d26c198b059e0829 /src/ft_draw_map.c | |
parent | Nice parse (diff) | |
download | 42-cub3d-537ace5d3615855ad2e236ab6f94862241ac71c4.tar.gz 42-cub3d-537ace5d3615855ad2e236ab6f94862241ac71c4.tar.bz2 42-cub3d-537ace5d3615855ad2e236ab6f94862241ac71c4.tar.xz 42-cub3d-537ace5d3615855ad2e236ab6f94862241ac71c4.tar.zst 42-cub3d-537ace5d3615855ad2e236ab6f94862241ac71c4.zip |
Ok
Diffstat (limited to 'src/ft_draw_map.c')
-rw-r--r-- | src/ft_draw_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c index 232891c..fc2613b 100644 --- a/src/ft_draw_map.c +++ b/src/ft_draw_map.c @@ -49,13 +49,13 @@ void { while (map[y][x]) { - if (ft_ischarset("1D", map[y][x])) + if (ft_ischarset("1", map[y][x])) ft_draw_square(scale + 9 + (x * (scale)), ft_y_offset(clist) - 9 + (y * (scale)), 0x00ca5422, clist); else if (map[y][x] == '2') ft_draw_square(scale + 9 + (x * (scale)), ft_y_offset(clist) - 9 + (y * (scale)), 0x0033ccff, clist); - else if (ft_ischarset("0LNSEW", map[y][x])) + else if (ft_ischarset("0LNSEWT", map[y][x])) ft_draw_square(scale + 9 + (x * (scale)), ft_y_offset(clist) - 9 + (y * (scale)), 0x006afa6a, clist); x++; |