aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_basic_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_basic_keys.c')
-rw-r--r--src/ft_basic_keys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_basic_keys.c b/src/ft_basic_keys.c
index ff74262..29044d9 100644
--- a/src/ft_basic_keys.c
+++ b/src/ft_basic_keys.c
@@ -19,7 +19,7 @@ int
t_player *pl;
const float move_speed = FT_MOVE_SPEED;
- pl = clist->plist;
+ pl = &clist->plist;
pl->pos_y += move_speed * pl->dir_x;
pl->pos_x += move_speed * pl->dir_y;
return (0);
@@ -31,7 +31,7 @@ int
t_player *pl;
const float move_speed = FT_STRAFE_SPEED;
- pl = clist->plist;
+ pl = &clist->plist;
pl->pos_y += move_speed * -pl->dir_y;
pl->pos_x += move_speed * pl->dir_x;
return (0);
@@ -43,7 +43,7 @@ int
t_player *pl;
const float move_speed = FT_MOVE_SPEED;
- pl = clist->plist;
+ pl = &clist->plist;
pl->pos_y += move_speed * -pl->dir_x;
pl->pos_x += move_speed * -pl->dir_y;
return (0);
@@ -55,7 +55,7 @@ int
t_player *pl;
const float move_speed = FT_STRAFE_SPEED;
- pl = clist->plist;
+ pl = &clist->plist;
pl->pos_y += move_speed * pl->dir_y;
pl->pos_x += move_speed * -pl->dir_x;
return (0);