From f4b3214056a562bd26a28cd8cbd3355f154da244 Mon Sep 17 00:00:00 2001 From: Babyhamsta Date: Mon, 18 Dec 2023 13:16:47 -0600 Subject: [PATCH] Fixed an issue where FOV didn't load due to some previous code that wasn't cleaned up during testing. --- AimmyWPF/MainWindow.xaml.cs | 3 --- AimmyWPF/PredictionManager.cs | 2 -- 2 files changed, 5 deletions(-) diff --git a/AimmyWPF/MainWindow.xaml.cs b/AimmyWPF/MainWindow.xaml.cs index c56a12a1..3ce42329 100644 --- a/AimmyWPF/MainWindow.xaml.cs +++ b/AimmyWPF/MainWindow.xaml.cs @@ -63,7 +63,6 @@ private enum MenuPosition { "FOV_Size", 640 }, { "Mouse_Sens", 0.80 }, { "Mouse_Jitter", 4 }, - { "Prediction_Sens", 0.1 }, { "Y_Offset", 0 }, { "X_Offset", 0 }, { "Trigger_Delay", 0.1 }, @@ -771,8 +770,6 @@ private async Task LoadConfigAsync(string path) // We'll attempt to update the AI Settings but it may not be loaded yet. try { - predictionManager.PredictionSens = aimmySettings["Prediction_Sens"]; - int fovSize = (int)aimmySettings["FOV_Size"]; FOVOverlay.FovSize = fovSize; AwfulPropertyChanger.PostNewFOVSize(); diff --git a/AimmyWPF/PredictionManager.cs b/AimmyWPF/PredictionManager.cs index afd46e73..b3e584bd 100644 --- a/AimmyWPF/PredictionManager.cs +++ b/AimmyWPF/PredictionManager.cs @@ -14,8 +14,6 @@ public struct Detection KalmanFilter2D kalmanFilter; private DateTime lastUpdateTime; - private const double ResetThreshold = 1; - public double PredictionSens = 0.01; public PredictionManager() {