-
Notifications
You must be signed in to change notification settings - Fork 0
/
map_struct_helpers.c
24 lines (22 loc) · 1.21 KB
/
map_struct_helpers.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
/* ************************************************************************** */
/* */
/* :::::::: */
/* map_struct_helpers.c :+: :+: */
/* +:+ */
/* By: cschuijt <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/12/27 17:17:15 by cschuijt #+# #+# */
/* Updated: 2022/12/27 17:17:15 by cschuijt ######## odam.nl */
/* */
/* ************************************************************************** */
#include "so_long.h"
void set_additional_map_variables(t_map *map, size_t player_pos)
{
map->size = ft_strlen(map->content);
map->content[player_pos] = '0';
map->col_total = ft_strchrc(map->content, 'C');
map->col_total_str = ft_itoa(map->col_total);
if (!map->col_total_str)
exit_perror("malloc error");
map->movement_clock = 20;
}