aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-29 20:34:02 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-29 20:34:02 +0100
commita1891c76be7688be7f9e213308b6af33e3d3dacf (patch)
tree853936a23986a4c11bd80384e86e9db2382c2adc /src/ft_get_sprite.c
parentg (diff)
download42-cub3d-a1891c76be7688be7f9e213308b6af33e3d3dacf.tar.gz
42-cub3d-a1891c76be7688be7f9e213308b6af33e3d3dacf.tar.bz2
42-cub3d-a1891c76be7688be7f9e213308b6af33e3d3dacf.tar.xz
42-cub3d-a1891c76be7688be7f9e213308b6af33e3d3dacf.tar.zst
42-cub3d-a1891c76be7688be7f9e213308b6af33e3d3dacf.zip
debugging...
Diffstat (limited to 'src/ft_get_sprite.c')
-rw-r--r--src/ft_get_sprite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_get_sprite.c b/src/ft_get_sprite.c
index d99f12e..5f9a0bc 100644
--- a/src/ft_get_sprite.c
+++ b/src/ft_get_sprite.c
@@ -28,8 +28,8 @@ void
{
if (ft_ischarset("2", clist->mlist->map[y][x]))
{
- clist->sprites.spritex = x + 0.5;
- clist->sprites.spritey = y + 0.5;
+ clist->sprites.spritex = x;
+ clist->sprites.spritey = y;
return ;
}
x++;