diff options
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r-- | src/ft_damage_bad_boy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c index 2d6bd58..8f896b0 100644 --- a/src/ft_damage_bad_boy.c +++ b/src/ft_damage_bad_boy.c @@ -22,8 +22,8 @@ static uint8_t i = 0; while (i < cl->mlist.sprite_nbr[13]) { - if (lround(cl->sprites[13][i].s_pos_x) == (long)cl->rlist.sqy && - lround(cl->sprites[13][i].s_pos_y) == (long)cl->rlist.sqx) + if (lround(cl->sprites[13][i].s_pos_x) == (long)cl->rlist.sqx && + lround(cl->sprites[13][i].s_pos_y) == (long)cl->rlist.sqy) break ; i++; } @@ -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)] = 'x'; } else if (cl->bad_boy[id].does != 3) cl->sfx[14].sfx_play(cl->sfx); |