From bb051192d7d5de2504c29508d1d56f21de1e0368 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sun, 12 Sep 2021 12:57:54 -0400 Subject: Rendering bug --- src/raycast.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raycast.zig b/src/raycast.zig index 2b55f49..77a9ef0 100644 --- a/src/raycast.zig +++ b/src/raycast.zig @@ -77,7 +77,7 @@ pub fn Player(PlaneWidth: f32, PlaneHeight: f32) type { vel_y: f32 = 0, acc_x: f32 = 0, acc_y: f32 = 0, - height: f32 = 1, // TODO + height: f32 = 2.0 * (1.8 / 2.5), // TODO z_buffer: std.BoundedArray(f32, PlanePixels), // standing still at the given location, looking in direction ang @@ -380,7 +380,7 @@ pub fn Player(PlaneWidth: f32, PlaneHeight: f32) type { self.z_buffer.set(index, row_dist); } } - highest_point = top; + highest_point = next_top; } } } -- cgit v1.3.1