aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_extra_keys.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-03 15:13:14 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-03 15:13:14 +0200
commit51b0cc28d4d7fc8a7433f492f234882a52b18b96 (patch)
tree0dde7ff64466921c0bfc8035f3ab5652cb1395aa /src/ft_extra_keys.c
parentSprites still bad, fixed player spawn, still revert if needed (diff)
download42-cub3d-51b0cc28d4d7fc8a7433f492f234882a52b18b96.tar.gz
42-cub3d-51b0cc28d4d7fc8a7433f492f234882a52b18b96.tar.bz2
42-cub3d-51b0cc28d4d7fc8a7433f492f234882a52b18b96.tar.xz
42-cub3d-51b0cc28d4d7fc8a7433f492f234882a52b18b96.tar.zst
42-cub3d-51b0cc28d4d7fc8a7433f492f234882a52b18b96.zip
Sprites fixed, shoot to fix
Diffstat (limited to '')
-rw-r--r--src/ft_extra_keys.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ft_extra_keys.c b/src/ft_extra_keys.c
index 1a81820..c1ea721 100644
--- a/src/ft_extra_keys.c
+++ b/src/ft_extra_keys.c
@@ -17,7 +17,6 @@
#include <libft.h>
#include <pthread.h>
-#include <stdio.h>
int
ft_left_key(t_cub *clist)
{
@@ -33,8 +32,6 @@ int
sav_plane_x = pl->plane_x;
pl->plane_x = pl->plane_x * cos(rot_speed) - pl->plane_y * sin(rot_speed);
pl->plane_y = sav_plane_x * sin(rot_speed) + pl->plane_y * cos(rot_speed);
- printf("dir_y %+f\n", pl->dir_y);
- printf("dir_x %+f\n\n", pl->dir_x);
return (0);
}
@@ -53,8 +50,6 @@ int
sav_plane_x = pl->plane_x;
pl->plane_x = pl->plane_x * cos(-rot_speed) - pl->plane_y * sin(-rot_speed);
pl->plane_y = sav_plane_x * sin(-rot_speed) + pl->plane_y * cos(-rot_speed);
- printf("dir_y %+f\n", pl->dir_y);
- printf("dir_x %+f\n\n", pl->dir_x);
return (0);
}