From 57867bbbdc24b734d85f8d3569c7ad27dcd9504d Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 15:52:16 +0100 Subject: files restructuration --- parse/parse_check.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 parse/parse_check.c (limited to 'parse/parse_check.c') diff --git a/parse/parse_check.c b/parse/parse_check.c deleted file mode 100644 index a65d74a..0000000 --- a/parse/parse_check.c +++ /dev/null @@ -1,46 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* check.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/01/11 10:59:15 by cacharle #+# #+# */ -/* Updated: 2020/01/11 13:03:33 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "cub3d.h" - -t_state *parse_check(t_state *state) -{ - int i; - /* int j; */ - /* int player_count; */ - - i = -1; - while (++i < state->map_width) - if (state->map[0][i] != CELL_WALL - || state->map[state->map_height - 1][i] != CELL_WALL) - return (error_put_return_state_destroy( - "validate map without borders", state)); - i = -1; - while (++i < state->map_height) - if (state->map[i][0] != CELL_WALL - || state->map[i][state->map_width - 1] != CELL_WALL) - return (error_put_return_state_destroy( - "validate map without borders", state)); - // maybe not necessary - /* player_count = 0; */ - /* i = -1; */ - /* while (++i < state->map_height) */ - /* { */ - /* j = -1; */ - /* while (++j < state->map_width) */ - /* if (helper_is_player_cell(state->map[i][j])) */ - /* player_count++; */ - /* } */ - /* if (player_count != 1) */ - /* return (state_destroy(state)); */ - return (state); -} -- cgit