diff --git a/Configuration/CameraSettings.cs b/Configuration/CameraSettings.cs index cf7c0d8..c683213 100644 --- a/Configuration/CameraSettings.cs +++ b/Configuration/CameraSettings.cs @@ -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; }