diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_basic_keys.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_basic_keys.c b/src/ft_basic_keys.c index 471038b..2d029ff 100644 --- a/src/ft_basic_keys.c +++ b/src/ft_basic_keys.c @@ -20,8 +20,8 @@ int const float move_speed = FT_MOVE_SPEED; pl = &clist->plist; - pl->pos_y += move_speed * pl->dir_x; - pl->pos_x += move_speed * pl->dir_y; + pl->pos_y += move_speed * pl->dir_y; + pl->pos_x += move_speed * pl->dir_x; clist->moves = 1; return (0); } @@ -33,8 +33,8 @@ int const float move_speed = FT_STRAFE_SPEED; pl = &clist->plist; - pl->pos_y += move_speed * -pl->dir_y; - pl->pos_x += move_speed * pl->dir_x; + pl->pos_y += move_speed * -pl->dir_x; + pl->pos_x += move_speed * pl->dir_y; clist->moves = 1; return (0); } @@ -46,8 +46,8 @@ int const float move_speed = FT_MOVE_SPEED; pl = &clist->plist; - pl->pos_y += move_speed * -pl->dir_x; - pl->pos_x += move_speed * -pl->dir_y; + pl->pos_y += move_speed * -pl->dir_y; + pl->pos_x += move_speed * -pl->dir_x; clist->moves = 1; return (0); } @@ -59,8 +59,8 @@ int const float move_speed = FT_STRAFE_SPEED; pl = &clist->plist; - pl->pos_y += move_speed * pl->dir_y; - pl->pos_x += move_speed * -pl->dir_x; + pl->pos_y += move_speed * pl->dir_x; + pl->pos_x += move_speed * -pl->dir_y; clist->moves = 1; return (0); } |