From 98eb4ded98daf048a97c59b9bd23b0068bd4ba32 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Wed, 15 May 2024 15:10:55 +0200 Subject: Resolve some norme errors --- src/init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/init.c') diff --git a/src/init.c b/src/init.c index 9926826..e7fedf2 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; @@ -36,7 +35,7 @@ static void init_hooks(t_game *game) static void init_actor(t_game *game) { mlx_texture_t *texture; - t_actor *player; + t_actor *player; player = &game->player; texture = mlx_load_png("textures/player.png"); @@ -49,5 +48,5 @@ static void init_actor(t_game *game) player->img = mlx_texture_to_image(game->mlx, texture); mlx_resize_image(player->img, player->size.x, player->size.y); mlx_image_to_window(game->mlx, player->img, player->position.x, - player->position.y); + player->position.y); } -- cgit v1.2.3