Skip to content

Commit

Permalink
Fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Nov 15, 2022
1 parent ea75521 commit 7feb58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/CameraSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ ScreenRect _viewRectCfg {
var _x = 1 - value.width;
var _y = 1 - value.height;

value.x = Mathf.Clamp(value.x, Math.Min(0, _x), Math.Max(0, _x));
value.y = Mathf.Clamp(value.y, Math.Min(0, _y), Math.Max(0, _y));
value.x = Mathf.Clamp(value.x, Math.Min(0, _x), Math.Max(0, -_x));
value.y = Mathf.Clamp(value.y, Math.Min(0, _y), Math.Max(0, -_y));

viewRect = value;
}
Expand Down

0 comments on commit 7feb58e

Please sign in to comment.