Skip to content

Commit

Permalink
fixed overflow here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ys-zm committed Feb 6, 2024
1 parent 7c4c0f0 commit 33569a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ void player_raycast(t_player *p)
ray_start = vec2d_add(p->direction, vec2d_scalar_product(p->cam_plane, camera_x));
p->rays[col] = raycaster_cast(p->position, ray_start, bound_check, p->meta);
// printf("wall x: %f\n", p->rays[col].wall_x);
col++;
p->z_buffer[col] = p->rays[col].length;
col++;
}

sprite_calculate(p);
Expand Down

0 comments on commit 33569a5

Please sign in to comment.