Added memorybook to parsing and cleaned most of the files

This commit is contained in:
Philippe BLAGOJEVIC
2022-05-04 14:38:34 +02:00
parent e564e7c8e9
commit 362668fe35
231 changed files with 11474 additions and 405 deletions

View File

@@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* key_action_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/04 13:48:54 by pblagoje #+# #+# */
/* Updated: 2022/05/04 13:48:56 by pblagoje ### ########.fr */
/* */
/* ************************************************************************** */
#include "cube3d.h"
int is_turn_left(int *k_hook, int *is_action)
@@ -5,9 +17,9 @@ int is_turn_left(int *k_hook, int *is_action)
if (!ft_arrint(k_hook, ARROW_LEFT, MAX_NB_KEY))
{
*is_action = 1;
return 1;
return (1);
}
return 0;
return (0);
}
int is_turn_right(int *k_hook, int *is_action)
@@ -15,7 +27,7 @@ int is_turn_right(int *k_hook, int *is_action)
if (!ft_arrint(k_hook, ARROW_RIGHT, MAX_NB_KEY))
{
*is_action = 1;
return 1;
return (1);
}
return 0;
return (0);
}