summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-15 16:58:49 +0200
committerDominik Kaiser2024-05-15 16:58:49 +0200
commit111ae98a90841e3eb47a762aae11a2cceb6b6396 (patch)
treef4e8dc4c44f0c0d77e733d1b645af215c3d46471
parente5d9814f121ad378b2364806b2a4791e86654382 (diff)
downloadso_long-111ae98a90841e3eb47a762aae11a2cceb6b6396.tar.gz
so_long-111ae98a90841e3eb47a762aae11a2cceb6b6396.zip
Rename draw_map() to draw_walls()
-rw-r--r--include/so_long.h4
-rw-r--r--src/draw.c4
-rw-r--r--src/main.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/so_long.h b/include/so_long.h
index 1f25424..5d0d394 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -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);
diff --git a/src/draw.c b/src/draw.c
index ab60df4..e350ca1 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -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;
diff --git a/src/main.c b/src/main.c
index f7352f4..048fa21 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);
}