Skip to content

Commit 9a6f795

Browse files
committed
FixZBufferPrecision: allow fix to apply during goal cutscene
TODO: could probably enable during STATE_ENDING as well, need to check if there are cutoffs...
1 parent 2e9c05c commit 9a6f795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks_graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class FixZBufferPrecision : public Hook
274274
// only set znear to 1 if...
275275
if ((camera->camera_mode_34A == 2 || camera->camera_mode_34A == 0) // ... in third-person or FPV
276276
&& camera->camera_mode_timer_364 == 0 // ... not switching cameras
277-
&& *Game::current_mode == STATE_GAME) // ... we're in main game state (not in STATE_START cutscene etc)
277+
&& (*Game::current_mode == STATE_GAME || *Game::current_mode == STATE_GOAL)) // ... we're in main game state (not in STATE_START cutscene etc)
278278
{
279279
camera->perspective_znear_BC = 1.0f;
280280
}

0 commit comments

Comments
 (0)