diff options
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r-- | src/ft_key_loop.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index 429628e..f72125a 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -51,28 +51,8 @@ static void t_player *pl; pl = cl->plist; - x = pl->pos_x; - y = pl->pos_y; - if (key == 0) - { - x = ft_find_x(key, pl); - y = ft_find_y(key, pl); - } - else if (key == 1) - { - x = ft_find_x(key, pl); - y = ft_find_y(key, pl); - } - else if (key == 2) - { - x = ft_find_x(key, pl); - y = ft_find_y(key, pl); - } - else if (key == 3) - { - x = ft_find_x(key, pl); - y = ft_find_y(key, pl); - } + x = ft_find_x(key, pl); + y = ft_find_y(key, pl); if (cl->mlist->map[y][x] == '1' || cl->mlist->map[y][x] == '2') { pl->pos_y = old_y; |