From 7e992a69a2031f630f1e30b0d864c0e4e7d32067 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Fri, 10 May 2024 12:17:52 +0200 Subject: Make norminette happy --- src/init.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/init.c') diff --git a/src/init.c b/src/init.c index d72f486..bd6b48f 100644 --- a/src/init.c +++ b/src/init.c @@ -6,7 +6,7 @@ /* By: dkaiser mlx = mlx_init(1920, 1080, "so_long", false); // TODO: make size and title dynamic game->input_direction = ZERO; init_hooks(game); init_player(&game->player, 960, 540); // TODO: make player spawn point dynamic - mlx_texture_t *texture = mlx_load_png("textures/player.png"); + texture = mlx_load_png("textures/player.png"); game->player.img = mlx_texture_to_image(game->mlx, texture); - mlx_image_to_window(game->mlx, game->player.img, game->player.position.x, game->player.position.y); + mlx_image_to_window(game->mlx, game->player.img, game->player.position.x, + game->player.position.y); return (0); } -- cgit v1.2.3