diff --git a/Assets/Cryville.EEW.Unity/Map/CameraController.cs b/Assets/Cryville.EEW.Unity/Map/CameraController.cs index d922acb..be3c8ea 100644 --- a/Assets/Cryville.EEW.Unity/Map/CameraController.cs +++ b/Assets/Cryville.EEW.Unity/Map/CameraController.cs @@ -68,6 +68,7 @@ namespace Cryville.EEW.Unity.Map { else Scale = b.Width * _camera.pixelHeight / _camera.pixelWidth; Scale *= 0.6f; + if (Scale < 0.01f) Scale = 0.01f; transform.localPosition = new PointF(b.X + b.Width / 2, b.Y + b.Height / 2).ToVector2(); UpdateTransform(); }