From ac9f8cc7c923b75f00d07ed1dcd63ca1838cde87 Mon Sep 17 00:00:00 2001 From: Mors Date: Sun, 12 Jan 2025 00:50:53 +0300 Subject: [PATCH] Fixed the BOB broken sphere maps as a quick patch --- VERSION | 2 +- src/pc/gfx/gfx_pc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index dc0a00c..ad672d4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v3.1.2 \ No newline at end of file +v3.1.2.1 \ No newline at end of file diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index 2b43fdf..6487ef5 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -1015,8 +1015,8 @@ static void gfx_sp_vertex(size_t n_vertices, size_t dest_index, const Vtx *verti for (int i = 0; i < rsp.current_num_lights - 1; i++) { calculate_normal_dir(&rsp.current_lights[i], rsp.current_lights_coeffs[i]); } - static const Light_t lookat_x = {{0, 0, 0}, 0, {0, 0, 0}, 0, {127, 0, 0}, 0}; - static const Light_t lookat_y = {{0, 0, 0}, 0, {0, 0, 0}, 0, {0, 127, 0}, 0}; + static const Light_t lookat_x = {{0, 0, 0}, 0, {0, 0, 0}, 0, {0, 127, 0}, 0}; + static const Light_t lookat_y = {{0, 0, 0}, 0, {0, 0, 0}, 0, {127, 0, 0}, 0}; calculate_normal_dir(&lookat_x, rsp.current_lookat_coeffs[0]); calculate_normal_dir(&lookat_y, rsp.current_lookat_coeffs[1]); rsp.lights_changed = false;