]> git.dkaiser.de - 42/so_long.git/commitdiff
Rename draw_map() to draw_walls()
authorDominik Kaiser <dkaiser@1-C-7.42heilbronn.de>
Wed, 15 May 2024 14:58:49 +0000 (16:58 +0200)
committerDominik Kaiser <dkaiser@1-C-7.42heilbronn.de>
Wed, 15 May 2024 14:58:49 +0000 (16:58 +0200)
include/so_long.h
src/draw.c
src/main.c

index 1f25424f0ca03618692d897599466de21c752daf..5d0d3942b6671337b8f87a09c73a9b4129283f8f 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/05/08 14:14:02 by dkaiser           #+#    #+#             */
-/*   Updated: 2024/05/15 15:19:06 by dkaiser          ###   ########.fr       */
+/*   Updated: 2024/05/15 16:41:49 by dkaiser          ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -89,7 +89,7 @@ int                           init(t_game *game);
 void                   loop(void *params);
 void                   player_process(t_game *game);
 int                            draw(t_game *game);
-int                            draw_map(t_game *game);
+int                            draw_walls(t_game *game);
 void                   on_key_input(mlx_key_data_t event, void *params);
 t_vector               grid_to_screen_pos(t_ivector grid_pos, t_ivector tile_size);
 t_ivector              screen_to_grid_pos(t_vector screen_pos, t_ivector tile_size);
index ab60df4766eadc8371fab5d4828f7bf5d1a6ee50..e350ca101af62be5b91dc33c8ad0361d51bb2800 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/05/09 17:58:23 by dkaiser           #+#    #+#             */
-/*   Updated: 2024/05/15 15:09:38 by dkaiser          ###   ########.fr       */
+/*   Updated: 2024/05/15 16:41:15 by dkaiser          ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -14,7 +14,7 @@
 #include "libft.h"
 #include "so_long.h"
 
-int    draw_map(t_game *game)
+int    draw_walls(t_game *game)
 {
        int                             x;
        int                             y;
index f7352f4e54aba106faa47ff2a23bf0af80ebde37..048fa21cbd256b67a4948781d60b36c4b4075db3 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: dkaiser <dkaiser@student.42heilbronn.de    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2024/05/08 14:14:13 by dkaiser           #+#    #+#             */
-/*   Updated: 2024/05/11 15:58:31 by dkaiser          ###   ########.fr       */
+/*   Updated: 2024/05/15 16:41:35 by dkaiser          ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -21,6 +21,6 @@ int   main(int argc, char *argv[])
        if (load_map_from_file(&game.map, argv[1]))
                return (1);
        init(&game);
-       draw_map(&game);
+       draw_walls(&game);
        mlx_loop(game.mlx);
 }