aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-04 22:12:28 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-04 22:12:28 +0100
commita7ed94daa9342fdfeb4807bf512f70d5c16dc88c (patch)
treea961c1bfe66342d64352fe029090d7af40607110
parentquick af (diff)
download42-cub3d-a7ed94daa9342fdfeb4807bf512f70d5c16dc88c.tar.gz
42-cub3d-a7ed94daa9342fdfeb4807bf512f70d5c16dc88c.tar.bz2
42-cub3d-a7ed94daa9342fdfeb4807bf512f70d5c16dc88c.tar.xz
42-cub3d-a7ed94daa9342fdfeb4807bf512f70d5c16dc88c.tar.zst
42-cub3d-a7ed94daa9342fdfeb4807bf512f70d5c16dc88c.zip
Weird bug fix
Diffstat (limited to '')
-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;