wip calcul texture image x position, and add protection when creating texture
This commit is contained in:
@@ -70,7 +70,7 @@ static void next_cell(t_rcast *rcast)
|
||||
}
|
||||
}
|
||||
|
||||
void ray_intersect(t_game *game, t_rcast *rcast, t_vec *ray)
|
||||
void ray_intersect_wall(t_game *game, t_rcast *rcast, t_vec *ray)
|
||||
{
|
||||
ray->start.x = rcast->ray.start.x + game->plr.pos.x;
|
||||
ray->start.y = rcast->ray.start.y + game->plr.pos.y;
|
||||
|
||||
Reference in New Issue
Block a user