aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_damage_bad_boy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 14:24:57 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-02 14:24:57 +0200
commit8a695d62dcb9b8783918263f962b986df20310f2 (patch)
tree37e3c4e286abcec481bbc8169c7297e1ec07b578 /src/ft_damage_bad_boy.c
parentLater (diff)
download42-cub3d-8a695d62dcb9b8783918263f962b986df20310f2.tar.gz
42-cub3d-8a695d62dcb9b8783918263f962b986df20310f2.tar.bz2
42-cub3d-8a695d62dcb9b8783918263f962b986df20310f2.tar.xz
42-cub3d-8a695d62dcb9b8783918263f962b986df20310f2.tar.zst
42-cub3d-8a695d62dcb9b8783918263f962b986df20310f2.zip
Correct dir_x dir_y sqy sqx
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r--src/ft_damage_bad_boy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c
index c404e94..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++;
}