aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
commitd4f853942aa2031c4bd85539ef9f3470967ffdc5 (patch)
treed2c5ffb0027860722185bf26b526757360ff1584 /src/main.c
parenttweaks (diff)
parentGoing full stack is bav (diff)
download42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.gz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.bz2
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.xz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.zst
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.zip
Merge branch 'bmp'
Diffstat (limited to '')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index e92fdf1..b55e051 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,16 +17,16 @@
int
main(int argc, const char *argv[])
{
- t_cub *clist;
+ t_cub clist;
if (ft_check_map_arg(argc, argv) == FT_RET_BAD_ARGV)
return (FT_RET_BAD_ARGV);
if (ft_init_cub3d(&clist) < 0)
return (FT_RET_FAILED_STRUCTS);
- ft_parse_map(argv[1], clist);
- if (ft_init_winlx(clist) < 0)
- return (ft_exit(FT_RET_FAILED_MLX, clist));
- ft_wall_tex_init(clist);
- ft_use_args(argc, argv, clist);
+ ft_parse_map(argv[1], &clist);
+ if (ft_init_winlx(&clist) < 0)
+ return (ft_exit(FT_RET_FAILED_MLX, &clist));
+ ft_wall_tex_init(&clist);
+ ft_use_args(argc, argv, &clist);
return (FT_RET_FINE);
}