diff options
author | salad <salad@saladesk.desktop> | 2020-03-23 18:05:40 +0100 |
---|---|---|
committer | salad <salad@saladesk.desktop> | 2020-03-23 18:05:40 +0100 |
commit | c4085f097c743f11d2bfa20462818899831a88b8 (patch) | |
tree | d7e3e9c2187c3d8524694e0e4a4e7ac7c6c42c5d /src/ft_shoot.c | |
parent | about to norm this mans whole career (diff) | |
download | 42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.gz 42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.bz2 42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.xz 42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.tar.zst 42-cub3d-c4085f097c743f11d2bfa20462818899831a88b8.zip |
normed
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r-- | src/ft_shoot.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c index 73a9617..084d8d2 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -15,19 +15,6 @@ #include <stdio.h> static void - ft_reset_sprites(t_cub *cl) -{ - uint16_t i; - uint16_t tmp; - - tmp = cl->mlist.sprite_var; - while(++i < tmp + 1) - { - ft_bzero(cl->sprites[i], sizeof(t_sprite)); - } -} - -static void ft_hitscan(t_cub *cl, uint16_t hit) { while (hit == 0) @@ -49,7 +36,6 @@ static void { hit = 1; cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy] = '0'; - ft_reset_sprites(cl); ft_get_sprite_spawn(cl); } else if (ft_ischarset("1", |