aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 16:39:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 16:39:26 +0100
commitea136c7d8cd675c1f708ec1ad12b6b749f5a9e17 (patch)
tree874b7520464514a06455cbeead47b532f94e1995 /src
parentBug fix (diff)
download42-cub3d-ea136c7d8cd675c1f708ec1ad12b6b749f5a9e17.tar.gz
42-cub3d-ea136c7d8cd675c1f708ec1ad12b6b749f5a9e17.tar.bz2
42-cub3d-ea136c7d8cd675c1f708ec1ad12b6b749f5a9e17.tar.xz
42-cub3d-ea136c7d8cd675c1f708ec1ad12b6b749f5a9e17.tar.zst
42-cub3d-ea136c7d8cd675c1f708ec1ad12b6b749f5a9e17.zip
Player position fix
Diffstat (limited to 'src')
-rw-r--r--src/ft_draw_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_map.c b/src/ft_draw_map.c
index 5d37566..286f69d 100644
--- a/src/ft_draw_map.c
+++ b/src/ft_draw_map.c
@@ -31,7 +31,7 @@ static void
ft_draw_circle(
(scale / 2) + (x * (scale)),
- ft_y_offset(clist) - (scale) + (y * (scale)),
+ ft_y_offset(clist) - (scale + 9) + (y * (scale)),
0x009843fa,
clist);
}
@@ -52,7 +52,7 @@ void
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')
+ else if (ft_ischarset(FT_CHRST_SPRITES, map[y][x]))
ft_draw_square(scale + 9 + (x * (scale)),
ft_y_offset(clist) - 9 + (y * (scale)), 0x0033ccff, clist);
else if (ft_ischarset(FT_CHRST_MAP_NON_WALL, map[y][x]))