diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-04 22:12:28 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-04 22:12:28 +0100 |
commit | a7ed94daa9342fdfeb4807bf512f70d5c16dc88c (patch) | |
tree | a961c1bfe66342d64352fe029090d7af40607110 | |
parent | quick af (diff) | |
download | 42-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-- | Makefile | 2 | ||||
-rw-r--r-- | src/ft_key_events.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |