From be34d7c8b2565ac055f9dc77111a1029ebd87d77 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 17 Feb 2020 20:24:57 +0100 Subject: sex --- src/ft_basic_keys.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ft_basic_keys.c') diff --git a/src/ft_basic_keys.c b/src/ft_basic_keys.c index d147486..ff74262 100644 --- a/src/ft_basic_keys.c +++ b/src/ft_basic_keys.c @@ -17,7 +17,7 @@ int ft_w_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.2; + const float move_speed = FT_MOVE_SPEED; pl = clist->plist; pl->pos_y += move_speed * pl->dir_x; @@ -29,7 +29,7 @@ int ft_a_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.1; + const float move_speed = FT_STRAFE_SPEED; pl = clist->plist; pl->pos_y += move_speed * -pl->dir_y; @@ -41,7 +41,7 @@ int ft_s_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.2; + const float move_speed = FT_MOVE_SPEED; pl = clist->plist; pl->pos_y += move_speed * -pl->dir_x; @@ -53,7 +53,7 @@ int ft_d_key(t_cub *clist) { t_player *pl; - const float move_speed = 0.1; + const float move_speed = FT_STRAFE_SPEED; pl = clist->plist; pl->pos_y += move_speed * pl->dir_y; -- cgit v1.2.3