blob: ee1671450e6ebf2412c317f30187d9cc504ac511 (
plain)
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_check_map_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 17:28:34 by rbousset #+# #+# */
/* Updated: 2020/02/14 17:28:37 by rbousset ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <libft.h>
#include <cub3d.h>
#include <stddef.h>
#include <stdint.h>
void
ft_get_topsp(char c, t_cub *clist)
{
int8_t x;
if ((x = ft_strlchr(FT_CHRST_SPRITES, c)) > 0)
{
if ((x + 2) > clist->mlist.topsp)
{
clist->mlist.topsp = x + 2;
}
}
}
|