Skip to content

Commit

Permalink
Update CameraComponent.cs
Browse files Browse the repository at this point in the history
Adjust "else if" on same line
  • Loading branch information
xen2 authored Sep 14, 2020
1 parent c4dffd8 commit 4136cb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sources/engine/Stride.Engine/Engine/CameraComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ public void Update(float? screenAspectRatio)
// A helper visualizing the state of the camera will not change it's state.
if (UseCustomAspectRatio)
ActuallyUsedAspectRatio = AspectRatio;
else
if (screenAspectRatio.HasValue)
else if (screenAspectRatio.HasValue)
ActuallyUsedAspectRatio = screenAspectRatio.Value;

// Calculates the View
Expand Down

0 comments on commit 4136cb6

Please sign in to comment.