aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 21:38:00 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 21:38:00 +0100
commit8998478510fba3fd77bdc19a0b503643362d332c (patch)
treef44a5b7a16b89a776520a95bfe495424e1a739b9 /src
parentIn progress (diff)
download42-cub3d-8998478510fba3fd77bdc19a0b503643362d332c.tar.gz
42-cub3d-8998478510fba3fd77bdc19a0b503643362d332c.tar.bz2
42-cub3d-8998478510fba3fd77bdc19a0b503643362d332c.tar.xz
42-cub3d-8998478510fba3fd77bdc19a0b503643362d332c.tar.zst
42-cub3d-8998478510fba3fd77bdc19a0b503643362d332c.zip
Works fine
Diffstat (limited to 'src')
-rw-r--r--src/ft_check_map_line.c4
-rw-r--r--src/ft_draw_heals.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c
index 79e0297..50464a9 100644
--- a/src/ft_check_map_line.c
+++ b/src/ft_check_map_line.c
@@ -37,8 +37,8 @@ static int8_t
ft_sprintf(clist->errmsg, FT_ERR_MULT_NLVL);
return (-1);
}
- clist->mlist.istraps = (line[i] == 'T') ? (1) : (0);
- clist->mlist.isheals = (line[i] == '+') ? (1) : (0);
+ clist->mlist.istraps = (line[i] == 'T') ? (1) : (clist->mlist.istraps);
+ clist->mlist.isheals = (line[i] == '+') ? (1) : (clist->mlist.isheals);
ft_get_topsp(line[i], clist);
return (0);
}
diff --git a/src/ft_draw_heals.c b/src/ft_draw_heals.c
index 8e2c842..d51ae97 100644
--- a/src/ft_draw_heals.c
+++ b/src/ft_draw_heals.c
@@ -97,7 +97,6 @@ void
sprite->spriteheight * 128;
sprite->tex_y = ((d * cl->tlist[17].img_h / 2) /
sprite->spriteheight) / 128;
- ft_printf("isheals %d\n", cl->mlist.isheals);
if (sprite->transformy > 0
&& cl->tlist[17].ptr[sprite->tex_x * 4 + 4 *
cl->tlist[17].img_h * sprite->tex_y]