fix: can't open room if exit "blocked" by ketchup
This commit is contained in:
parent
fb966caa48
commit
0e745f82b3
11 changed files with 39 additions and 29 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/15 14:58:25 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/15 17:42:06 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/18 15:56:04 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -21,7 +21,8 @@ typedef t_object (*t_object_init)(t_memclass);
|
|||
typedef struct s_objecttype
|
||||
{
|
||||
t_object_init init;
|
||||
bool solid;
|
||||
bool solid_snas;
|
||||
bool solid_firsk;
|
||||
t_point (*loop)(t_object *, t_point pos);
|
||||
void (*draw)(t_object *, t_point p);
|
||||
// Called when a character want to walk through this object.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/10 18:13:05 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/18 13:50:36 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/18 16:03:39 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -15,6 +15,6 @@
|
|||
|
||||
# include "includes.h"
|
||||
|
||||
t_direction pathfinding(t_point start, t_point finish, bool solid_bridge);
|
||||
t_direction pathfinding(t_point start, t_point finish, bool for_firsk);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue