Merge branch 'master' of git.sr.ht:~xamora/cube3D

This commit is contained in:
Camille Chauvet 2023-05-03 10:47:52 +00:00
commit b84e391fa7

View File

@ -6,7 +6,7 @@
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */ /* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/26 12:59:53 by erey-bet #+# #+# */ /* Created: 2023/04/26 12:59:53 by erey-bet #+# #+# */
/* Updated: 2023/04/28 16:23:57 by erey-bet ### ########.fr */ /* Updated: 2023/05/03 12:47:12 by erey-bet ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -16,7 +16,8 @@ int start_game(t_map *map)
{ {
t_game game; t_game game;
if (init(map, &game)) init(map, &game);
if (!game.mlx)
return (1); return (1);
game.window = mlx_new_image(game.mlx, WIDTH, HEIGHT); game.window = mlx_new_image(game.mlx, WIDTH, HEIGHT);
if (!game.window) if (!game.window)