aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_map_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_map_error.c')
-rw-r--r--src/ft_map_error.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ft_map_error.c b/src/ft_map_error.c
new file mode 100644
index 0000000..bffb6d1
--- /dev/null
+++ b/src/ft_map_error.c
@@ -0,0 +1,9 @@
+#include <libft.h>
+#include <cub3d.h>
+
+int
+ft_map_error(unsigned int line)
+{
+ ft_printf("\033[1;31mMap error: line %d\033[0m\n", line);
+ return (ft_exit(1));
+}