diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_sprite.c | 1 | ||||
-rw-r--r-- | src/ft_shoot.c | 2 | ||||
-rw-r--r-- | src/ft_time.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index df7e11c..6afac08 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -86,7 +86,6 @@ void int32_t d; sprite->x = sprite->drawstartx; - ft_printf("%d\n", sprite->current_sprite); while (sprite->x < sprite->drawendx) { sprite->tex_x = (int32_t)((sprite->x - (-sprite->spritewidth / 2 + diff --git a/src/ft_shoot.c b/src/ft_shoot.c index 5342509..7f12eb6 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.7) + + powf(cl->plist.pos_y - cl->rlist.sqx, 2)) > 1.3) return (0); return (1); } diff --git a/src/ft_time.c b/src/ft_time.c index a2ab4a0..88822f5 100644 --- a/src/ft_time.c +++ b/src/ft_time.c @@ -30,7 +30,7 @@ void curr = clock(); dt += curr - before; - if (dt > 0 && ft_clock_to_ms(dt) > 700.0) + if (dt > 0 && ft_clock_to_ms(dt) > 1000.0) { cl->plist.fire = 0; dt = 0; |