diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 22:47:46 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-18 22:47:46 +0100 |
commit | c855933082c15539b73bb26e3e745c295e69d4d4 (patch) | |
tree | 3a3cd3a0eb9fa0d8c2ceb571d244177496ae59ed /src/ft_draw_traps.c | |
parent | Merge branch 'master' into weaps (diff) | |
parent | Merge branch 'better_sprites' (diff) | |
download | 42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.gz 42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.bz2 42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.xz 42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.zst 42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.zip |
Merge branch 'master' into weaps
Diffstat (limited to 'src/ft_draw_traps.c')
-rw-r--r-- | src/ft_draw_traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_traps.c b/src/ft_draw_traps.c index 8bf2221..71e8fe8 100644 --- a/src/ft_draw_traps.c +++ b/src/ft_draw_traps.c @@ -41,7 +41,7 @@ void int32_t it; it = 0; - while (it < cl->mlist.sprite_nbr) + while (it < cl->mlist.traps_nbr) { dist_tab[it] = ((cl->plist.pos_x - cl->traps[it].s_pos_x) * (cl->plist.pos_x - cl->traps[it].s_pos_x) + |