We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9c05c commit 9a6f795Copy full SHA for 9a6f795
src/hooks_graphics.cpp
@@ -274,7 +274,7 @@ class FixZBufferPrecision : public Hook
274
// only set znear to 1 if...
275
if ((camera->camera_mode_34A == 2 || camera->camera_mode_34A == 0) // ... in third-person or FPV
276
&& 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)
+ && (*Game::current_mode == STATE_GAME || *Game::current_mode == STATE_GOAL)) // ... we're in main game state (not in STATE_START cutscene etc)
278
{
279
camera->perspective_znear_BC = 1.0f;
280
}
0 commit comments