diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_damage_bad_boy.c | 2 | ||||
-rw-r--r-- | src/ft_shoot.c | 2 |
2 files changed, 3 insertions, 1 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); diff --git a/src/ft_shoot.c b/src/ft_shoot.c index 7f12eb6..01a96fd 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -49,7 +49,7 @@ static int8_t { if (cl->plist.handles_weapon == 0 && sqrtf(powf(cl->plist.pos_x - cl->rlist.sqy, 2) - + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.3) + + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.6) return (0); return (1); } |