summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-29 16:34:17 +0200
committerDominik Kaiser2024-05-29 16:34:17 +0200
commitfc074e311232e90d997aa4062c63225380190bd3 (patch)
tree0dab1b550b76d0f27ff969c76c4da09c8a8b43e8 /src/main.c
parent9e62e1d25ed48263ad54ea236df1907a3a96790d (diff)
downloadso_long-fc074e311232e90d997aa4062c63225380190bd3.tar.gz
so_long-fc074e311232e90d997aa4062c63225380190bd3.zip
Add map checking
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fca5cf0..75b58d2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:13 by dkaiser #+# #+# */
-/* Updated: 2024/05/15 17:31:46 by dkaiser ### ########.fr */
+/* Updated: 2024/05/29 14:58:22 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,6 +20,8 @@ int main(int argc, char *argv[])
return (1);
if (load_map_from_file(&game.map, argv[1]))
return (1);
+ if (check_map(&game.map))
+ return (1);
init(&game);
draw_walls(&game);
draw_exit(&game);