From 9a6f795da6f627016c93370924730eb67710c10b Mon Sep 17 00:00:00 2001 From: emoose Date: Wed, 11 Dec 2024 21:49:14 +0000 Subject: [PATCH] FixZBufferPrecision: allow fix to apply during goal cutscene TODO: could probably enable during STATE_ENDING as well, need to check if there are cutoffs... --- src/hooks_graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks_graphics.cpp b/src/hooks_graphics.cpp index 8bcb79d..ab8ccce 100644 --- a/src/hooks_graphics.cpp +++ b/src/hooks_graphics.cpp @@ -274,7 +274,7 @@ class FixZBufferPrecision : public Hook // only set znear to 1 if... if ((camera->camera_mode_34A == 2 || camera->camera_mode_34A == 0) // ... in third-person or FPV && camera->camera_mode_timer_364 == 0 // ... not switching cameras - && *Game::current_mode == STATE_GAME) // ... we're in main game state (not in STATE_START cutscene etc) + && (*Game::current_mode == STATE_GAME || *Game::current_mode == STATE_GOAL)) // ... we're in main game state (not in STATE_START cutscene etc) { camera->perspective_znear_BC = 1.0f; }