aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/ft_key_events.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7f4eee6..5a9900b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ MLX_DIR = libmlx/
#==============================================================================#
INCS = cub3d.h
#------------------------------------------------------------------------------#
-SRCS_NAME = main.c
+SRCS_NAME = main.c
SRCS_NAME += ft_init_lists.c
SRCS_NAME += ft_key_events.c
SRCS_NAME += ft_exit.c
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index da24f7e..b1e5aa7 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -51,7 +51,7 @@ static int
t_player *pl;
pl = clist->plist;
- if (pl->view_side >= 1)
+ if (pl->view_side == 1)
pl->pos_y += 0.4;
else if (pl->view_side == 2)
pl->pos_x -= 0.4;