aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:39:54 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:39:54 +0100
commit54a87749b47b094d54858f563fe7796a2209d83b (patch)
treea71193743cd07ad497218ae461f03212bf437994
parentFreed leaks (diff)
download42-cub3d-54a87749b47b094d54858f563fe7796a2209d83b.tar.gz
42-cub3d-54a87749b47b094d54858f563fe7796a2209d83b.tar.bz2
42-cub3d-54a87749b47b094d54858f563fe7796a2209d83b.tar.xz
42-cub3d-54a87749b47b094d54858f563fe7796a2209d83b.tar.zst
42-cub3d-54a87749b47b094d54858f563fe7796a2209d83b.zip
Stupid me
Diffstat (limited to '')
-rw-r--r--src/ft_floor_cast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c
index 1082fe5..36c759f 100644
--- a/src/ft_floor_cast.c
+++ b/src/ft_floor_cast.c
@@ -23,8 +23,8 @@ static void
static void
ft_draw_extra_tex(uint8_t tid, uint16_t y, uint16_t x, t_cub *cl)
{
- float dist;
- float calc;
+ float dist;
+ float calc;
if ((dist = cl->rlist.row_dist) <= 0)
dist = 0.0001;