From d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 1 Apr 2020 14:44:10 +0200 Subject: Killing skeltons gives ammo, but still segv --- src/ft_damage_bad_boy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_damage_bad_boy.c') diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c index 2d6bd58..bf2f179 100644 --- a/src/ft_damage_bad_boy.c +++ b/src/ft_damage_bad_boy.c @@ -47,6 +47,8 @@ void { cl->sfx[13].sfx_play(cl->sfx); cl->bad_boy[id].isdead = 1; + cl->mlist.map[lround(cl->sprites[13][id].s_pos_y)] + [lround(cl->sprites[13][id].s_pos_x)] = '#'; } else if (cl->bad_boy[id].does != 3) cl->sfx[14].sfx_play(cl->sfx); -- cgit v1.2.3