Skip to content

Commit

Permalink
Adjust zoom/pitch scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed Feb 2, 2020
1 parent 2ec74ea commit b4b6b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main/src/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void Camera::Tick(float deltaTime, class BeatmapPlayback& playback)
}

bool portrait = g_aspectRatio < 1.0f;
float lanePitch = (portrait ? pLanePitch : PitchScaleFunc(pLanePitch)) * pitchUnit;
float lanePitch = (portrait ? pLanePitch * 4 / 3.f : PitchScaleFunc(pLanePitch)) * pitchUnit;

worldNormal = GetOriginTransform(lanePitch, m_totalOffset, m_totalRoll * 360.0f);
worldNoRoll = GetOriginTransform(lanePitch, 0, 0);
Expand All @@ -244,7 +244,7 @@ void Camera::Tick(float deltaTime, class BeatmapPlayback& playback)
if (portrait)
{
// This doesn't scale correctly with some charts (e.g. INDEPENDENT SKY GRV)
zoomAmt = -pLaneZoom / (pLaneZoom > 0 ? 2.f : 1.1f);
zoomAmt = -pLaneZoom / (pLaneZoom > 0 ? 2.f : 1);
}
else
{
Expand Down

0 comments on commit b4b6b85

Please sign in to comment.