Skip to content

Commit

Permalink
suggests
Browse files Browse the repository at this point in the history
  • Loading branch information
yukani committed Oct 12, 2024
1 parent 3cd5a5b commit da0be4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/game_sa/Cam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,17 +430,17 @@ void CCam::Process_Fixed(const CVector& target, float orientation, float speedVa
GetVectorsReadyForRW();

// inlined?
const auto a = CrossProduct(
m_vecFront,
(m_vecCamFixedModeUpOffSet + CVector{ 0.0f, 0.0f, 1.0f }).Normalized()
).Normalized();
m_vecUp = CrossProduct(
CrossProduct(
m_vecFront,
(m_vecCamFixedModeUpOffSet + CVector{ 0.0f, 0.0f, 1.0f }).Normalized()
).Normalized(),
a,
m_vecFront
);
m_fFOV = 70.0f;

float waterLevel{};
if (CWaterLevel::GetWaterLevel(m_vecSource, waterLevel, true) && m_vecSource.z < waterLevel) {
if (float wl{}; CWaterLevel::GetWaterLevel(m_vecSource, wl, true) && m_vecSource.z < wl) {
ApplyUnderwaterMotionBlur();
}

Expand Down

0 comments on commit da0be4e

Please sign in to comment.