aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
commit76cefdc4dc3efa6eb410574a0f5ec42188ba11bd (patch)
tree755a05ecf1380be7e4011277e7aa657e9a76f6e6 /src/ft_raycasting.c
parentAwesome (diff)
download42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.gz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.bz2
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.xz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.zst
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.zip
Almost
Diffstat (limited to '')
-rw-r--r--src/ft_raycasting.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index f9a0e45..3bfd038 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -32,18 +32,18 @@ static void
!(rl->fc_tex_x_tab = (int32_t***)malloc(2 * sizeof(int32_t**))) ||
!(rl->fc_tex_y_tab = (int32_t***)malloc(2 * sizeof(int32_t**))) ||
!(rl->row_dist_tab = (float*)malloc(y_s * sizeof(float))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
x = -1;
while (++x < 2)
{
if (!(rl->fc_tex_x_tab[x] = (int**)malloc(y_s * sizeof(int*))) ||
!(rl->fc_tex_y_tab[x] = (int**)malloc(y_s * sizeof(int*))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
y = -1;
while (++y < y_s)
if (!(rl->fc_tex_x_tab[x][y] = (int*)malloc(x_s * sizeof(int))) ||
!(rl->fc_tex_y_tab[x][y] = (int*)malloc(x_s * sizeof(int))))
- ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, cl);
+ ft_alloc_error(cl);
}
}