add player moves and test image

This commit is contained in:
Hugo LAMY
2022-03-30 12:55:39 +02:00
parent f645da7885
commit 00b3612c16
11 changed files with 109 additions and 236 deletions

View File

@@ -44,7 +44,7 @@ void mb_free(void *addr)
lst = mb_lst();
tmp = ft_lstfind((*lst), addr, mb_comp_addr);
if (!tmp)
ft_putstr_fd(B_RED"failed free element"RESET"\n", 2);
ft_putstr_fd(B_RED"element to free doesn't exist (maybe it was already freed)"RESET"\n", 2);
ft_lsterase(tmp, free);
}
@@ -61,4 +61,3 @@ void mb_exit(char *str)
ft_lstfree((*lst), free);
exit(0);
}