diff --git a/HitScoreVisualizer/Config.cs b/HitScoreVisualizer/Config.cs
index 6c1d932..edd9c50 100644
--- a/HitScoreVisualizer/Config.cs
+++ b/HitScoreVisualizer/Config.cs
@@ -394,7 +394,7 @@ namespace HitScoreVisualizer
float accuracy = 1f - Mathf.Clamp01(noteCutInfo.cutDistanceToCenter / 0.2f);
float afterCut = 0f;
if (saberAfterCutSwingRatingCounter != null)
- afterCutScore = saberAfterCutSwingRatingCounter.rating;
+ afterCut = saberAfterCutSwingRatingCounter.rating;
int beforeCutScore, accuracyScore, afterCutScore;
int beforeMax, accuracyMax, afterMax;
@@ -404,18 +404,19 @@ namespace HitScoreVisualizer
beforeMax = 100;
accuracyMax = 100;
afterMax = 100;
- } else
+ }
+ else
{
beforeMax = 70;
accuracyMax = 10;
afterMax = 30;
}
- beforeCutScore = Mathf.Round((float) beforeMax * beforeCut);
- accuracyScore = Mathf.Round((float) accuracyMax * accuracy);
- afterCutScore = Mathf.Round((float) afterMax * afterCut);
+ beforeCutScore = Mathf.RoundToInt((float) beforeMax * beforeCut);
+ accuracyScore = Mathf.RoundToInt((float) accuracyMax * accuracy);
+ afterCutScore = Mathf.RoundToInt((float) afterMax * afterCut);
- if (beforeCutScore == beforeMax && accuracyScore == acMulti && afterCutScore == afterMax)
+ if (beforeCutScore == beforeMax && accuracyScore == accuracyMax && afterCutScore == afterMax)
{
text.text = "Perfect!";
return;
diff --git a/HitScoreVisualizer/HitScoreVisualizer.csproj b/HitScoreVisualizer/HitScoreVisualizer.csproj
index 5316364..a7efad4 100644
--- a/HitScoreVisualizer/HitScoreVisualizer.csproj
+++ b/HitScoreVisualizer/HitScoreVisualizer.csproj
@@ -31,16 +31,16 @@
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\0Harmony.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\0Harmony.dll
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp.dll
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp-firstpass.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\Assembly-CSharp-firstpass.dll
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\IllusionPlugin.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\IllusionPlugin.dll
..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll
@@ -54,10 +54,10 @@
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.dll
- ..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll
+ ..\..\..\..\Steam Games\steamapps\common\Beat Saber\Beat Saber_Data\Managed\UnityEngine.CoreModule.dll