Skip to content

Commit

Permalink
🐛 Fixed sprite position
Browse files Browse the repository at this point in the history
  • Loading branch information
okbrandon committed Feb 22, 2024
1 parent d5a9b54 commit e97d597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srcs/bonus/utils/ft_sprite_utils_bonus.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bsoubaig <bsoubaig@student.42nice.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 17:34:31 by bsoubaig #+# #+# */
/* Updated: 2023/10/31 19:42:08 by bsoubaig ### ########.fr */
/* Updated: 2024/02/22 09:30:12 by bsoubaig ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -86,8 +86,8 @@ void ft_find_sprites(t_map *map)
{
if (map->matrix[i][j] == 'X')
{
map->sprites[x].pos.x = i;
map->sprites[x].pos.y = j;
map->sprites[x].pos.x = i + 0.5;
map->sprites[x].pos.y = j + 0.5;
x++;
}
}
Expand Down

0 comments on commit e97d597

Please sign in to comment.