diff options
author | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 18:58:33 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z3r8p1.le-101.fr> | 2020-02-13 18:58:33 +0100 |
commit | 751f38b640b676c0c0dbcaa0a3af14383f123917 (patch) | |
tree | b6c04fa95c39bf6446e98309c42fc34e50bf037c | |
parent | Changed move speed (diff) | |
download | 42-cub3d-751f38b640b676c0c0dbcaa0a3af14383f123917.tar.gz 42-cub3d-751f38b640b676c0c0dbcaa0a3af14383f123917.tar.bz2 42-cub3d-751f38b640b676c0c0dbcaa0a3af14383f123917.tar.xz 42-cub3d-751f38b640b676c0c0dbcaa0a3af14383f123917.tar.zst 42-cub3d-751f38b640b676c0c0dbcaa0a3af14383f123917.zip |
Solid map is better
-rw-r--r-- | src/ft_drawmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c index 9f749ad..b8b4e2c 100644 --- a/src/ft_drawmap.c +++ b/src/ft_drawmap.c @@ -30,14 +30,14 @@ static void while (map[y][x]) { if (map[y][x] == '1') - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), 0x00aa99aa, clist); + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), 0x00aa99aa, clist); else if (map[y][x] == '2') - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), 0x0033ccff, clist); + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), 0x0033ccff, clist); else - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), ft_rgb_to_hex(clist->f_rgb), clist); x++; } |