diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 14:44:10 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-01 14:44:10 +0200 |
commit | d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0 (patch) | |
tree | c99babe2ddd0f77c14b9cb102342c461170c02c1 /src/ft_damage_bad_boy.c | |
parent | Player screams all the time (diff) | |
download | 42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.gz 42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.bz2 42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.xz 42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.tar.zst 42-cub3d-d6043e18cbd776383ec7c3901b1e4c1bb1d66cd0.zip |
Killing skeltons gives ammo, but still segv
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r-- | src/ft_damage_bad_boy.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |