diff options
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r-- | src/ft_key_loop.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index bc7f932..75aec65 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -40,8 +40,11 @@ int { cl->key_ptr[cl->key_input[i]](cl); ft_collision(old_y, old_x, cl->plist, cl->mlist); - /* if (cl->mlist->isnlvl) */ - /* ft_change_level(cl); */ + if (cl->mlist->isnlvl) + { + if (ft_warp_level(cl) < 0) + return (ft_exit(RET_FAILED_STRUCTS, cl)); + } i++; } if (cl->key_input[0] != -1) |