This commit is contained in:
SmallJoker 2024-12-31 12:24:08 +01:00 committed by GitHub
commit 02e1a1fa13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -473,12 +473,12 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 tool_reload_ratio)
m_fov_transition_active = false;
m_curr_fov_degrees = m_target_fov_degrees;
}
} else if (m_server_sent_fov) {
// Instantaneous FOV change
m_curr_fov_degrees = m_target_fov_degrees;
} else if (player->getPlayerControl().zoom && player->getZoomFOV() > 0.001f) {
// Player requests zoom, apply zoom FOV
m_curr_fov_degrees = player->getZoomFOV();
} else if (m_server_sent_fov) {
// Instantaneous FOV change
m_curr_fov_degrees = m_target_fov_degrees;
} else {
// Set to client's selected FOV
m_curr_fov_degrees = m_cache_fov;

View File

@ -2338,7 +2338,7 @@ void Game::toggleFullViewRange()
void Game::checkZoomEnabled()
{
LocalPlayer *player = client->getEnv().getLocalPlayer();
if (player->getZoomFOV() < 0.001f || player->getFov().fov > 0.0f)
if (player->getZoomFOV() < 0.001f)
m_game_ui->showTranslatedStatusText("Zoom currently disabled by game or mod");
}