diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 02:35:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 02:35:49 +0100 |
commit | 8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7 (patch) | |
tree | 026b97aaa56ac87328d1fa7332872e86b1b15d32 /src/ft_key_loop.c | |
parent | Added sound effects files (diff) | |
download | 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.gz 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.bz2 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.xz 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.zst 42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.zip |
Freed leaks
Diffstat (limited to '')
-rw-r--r-- | src/ft_key_loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index 66f72ef..8f9d688 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -58,7 +58,10 @@ static void { pl->pos_x = old_x + ((old_x - x) / 3); pl->pos_y = old_y + ((old_y - y) / 3); - ft_suffer_animation(cl); + if (FT_OS == 1) + ft_macos_suffer_animation(cl); + else + ft_linux_suffer_animation(cl); x = ft_find_x(key, pl); y = ft_find_y(key, pl); } |