-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphics2.c
56 lines (51 loc) · 1.56 KB
/
graphics2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* graphics2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zbabahmi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/12 00:53:15 by zbabahmi #+# #+# */
/* Updated: 2023/04/14 01:27:56 by zbabahmi ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void items_help(t_savage *criminal)
{
if (criminal->imgwall == NULL)
{
ft_printf("ERROR : chi haja machi hya hadik\n");
exit (1);
}
if (criminal->imgcoin == NULL)
{
ft_printf("ERROR : chi haja machi hya hadik\n");
exit (1);
}
if (criminal->imgplayer == NULL)
{
ft_printf("ERROR : chi haja machi hya hadik\n");
exit (1);
}
}
void items_help2(t_savage *criminal)
{
if (criminal->imgfloor == NULL)
{
ft_printf("ERROR : chi haja machi hya hadik\n");
exit (1);
}
if (criminal->imgdoor == NULL)
{
ft_printf("ERROR : chi haja machi hya hadik\n");
exit (1);
}
}
int ft__strlen(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
i++;
return (i);
}