From d38dd1a58e864a4d153aaac28884e182eab4381d Mon Sep 17 00:00:00 2001 From: ZouJin Date: Fri, 19 Apr 2024 17:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E8=B5=B7=E6=97=B6=E5=B0=8F=E4=BA=8E1?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=A7=BB=E5=BF=BD=E7=95=A5=E6=8E=89=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Display/Main.xaml.cs | 4 ++++ VPet-Simulator.Windows/MainWindow_Property.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VPet-Simulator.Core/Display/Main.xaml.cs b/VPet-Simulator.Core/Display/Main.xaml.cs index a93160e..b0096e9 100644 --- a/VPet-Simulator.Core/Display/Main.xaml.cs +++ b/VPet-Simulator.Core/Display/Main.xaml.cs @@ -358,6 +358,10 @@ namespace VPet_Simulator.Core var mp = e.GetPosition(MainGrid); var x = mp.X - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].X; var y = mp.Y - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].Y; + if (Math.Abs(x) < 1) + x = 0; + if (Math.Abs(y) < 1) + y = 0; Core.Controller.MoveWindows(x, y); if (Math.Abs(x) + Math.Abs(y) > 20 && rasetype >= 1) rasetype = 0; diff --git a/VPet-Simulator.Windows/MainWindow_Property.cs b/VPet-Simulator.Windows/MainWindow_Property.cs index 2e5c31a..0c08fd0 100644 --- a/VPet-Simulator.Windows/MainWindow_Property.cs +++ b/VPet-Simulator.Windows/MainWindow_Property.cs @@ -19,7 +19,7 @@ public partial class MainWindow /// /// 版本号 /// - public int version { get; } = 11012; + public int version { get; } = 11013; /// /// 版本号 ///