game image created but all wrong

This commit is contained in:
hugogogo
2022-04-24 21:18:36 +02:00
parent a11ea35ac1
commit 03f61d989b
6 changed files with 50 additions and 33 deletions

View File

@@ -3,7 +3,6 @@
static void init_raycast(t_rcast *rcast, t_vec *ray)
{
rcast->is_x = 0;
rcast->wall_height = 0;
// ray sign
rcast->ray_sign_x = 1;
if (ray->start.x < ray->end.x)