aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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]))