aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 00:16:19 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-23 00:16:19 +0100
commit6fc94e5dd57dd80d451623280213aecbf4039a12 (patch)
treef988c22770aa8a5e11dd188f6a24c960aad6de13 /src
parentFixed map_three, Makefiles have POWERMODE (diff)
download42-cub3d-6fc94e5dd57dd80d451623280213aecbf4039a12.tar.gz
42-cub3d-6fc94e5dd57dd80d451623280213aecbf4039a12.tar.bz2
42-cub3d-6fc94e5dd57dd80d451623280213aecbf4039a12.tar.xz
42-cub3d-6fc94e5dd57dd80d451623280213aecbf4039a12.tar.zst
42-cub3d-6fc94e5dd57dd80d451623280213aecbf4039a12.zip
GCC-friendly now
Diffstat (limited to 'src')
-rw-r--r--src/ft_get_player_spawn.c5
-rw-r--r--src/ft_map_error.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/ft_get_player_spawn.c b/src/ft_get_player_spawn.c
index e1f313e..617ec22 100644
--- a/src/ft_get_player_spawn.c
+++ b/src/ft_get_player_spawn.c
@@ -32,13 +32,8 @@ static void
static void
ft_get_s_dir(t_player *pl)
{
- float sav_dir_x;
- float sav_plane_x;
-
- sav_dir_x = pl->dir_x;
pl->dir_x = -pl->dir_x;
pl->dir_y = -pl->dir_y;
- sav_plane_x = pl->plane_x;
pl->plane_x = -pl->plane_x;
pl->plane_y = -pl->plane_y;
}
diff --git a/src/ft_map_error.c b/src/ft_map_error.c
index 5d5ab68..a36507a 100644
--- a/src/ft_map_error.c
+++ b/src/ft_map_error.c
@@ -19,7 +19,7 @@ int
{
ft_dprintf(STDERR_FILENO, "Error\n");
ft_dprintf(STDERR_FILENO,
- "\033[1;31mMap error: line %zu: %s\033[0m\n",
+ "\033[1;31mMap error: line %lu: %s\033[0m\n",
clist->mlist->line_chk,
errmsg);
return (ft_exit(4, clist));