aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--map/map_one.cub8
-rw-r--r--src/ft_draw_map.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/map/map_one.cub b/map/map_one.cub
index 540e7c2..0b0cbd5 100644
--- a/map/map_one.cub
+++ b/map/map_one.cub
@@ -1,4 +1,4 @@
-R 1400 800
+R 1400 900
NO ./media/img/segfot_small.xpm
SO ./media/img/segfot_small.xpm
@@ -22,8 +22,8 @@ SH 4
1011001 100001
111101111111110111
110000001101010111
-100020000000000011
-100000000000000011
-110000001101010111
+100020T00000000011
+100000T00000000011
+110000T01101010111
111101111111010111
11111 1 1111
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++;