aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
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 /src/ft_key_events.c
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 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c2
1 files changed, 1 insertions, 1 deletions
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;