mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +02:00
try to fix weird score bug
controller only gets re-assigned on first boot don't stall the cpu to queue frames
This commit is contained in:
@ -104,16 +104,6 @@ namespace HeavenStudio
|
||||
}
|
||||
|
||||
// input accuracy (%)
|
||||
double totalInputs = 0;
|
||||
double totalPlayerAccuracy = 0;
|
||||
public double PlayerAccuracy
|
||||
{
|
||||
get
|
||||
{
|
||||
if (totalInputs == 0) return 0;
|
||||
return totalPlayerAccuracy / totalInputs;
|
||||
}
|
||||
}
|
||||
bool skillStarCollected = false;
|
||||
|
||||
// cleared sections
|
||||
@ -342,9 +332,6 @@ namespace HeavenStudio
|
||||
|
||||
if (weight > 0 && MarkerWeight > 0)
|
||||
{
|
||||
totalInputs += weight * MarkerWeight;
|
||||
totalPlayerAccuracy += Math.Abs(accuracy) * weight * MarkerWeight;
|
||||
|
||||
judgementInfo.inputs.Add(new JudgementManager.InputInfo
|
||||
{
|
||||
beat = beat,
|
||||
@ -675,9 +662,6 @@ namespace HeavenStudio
|
||||
inputOffsetSamples.Clear();
|
||||
averageInputOffset = 0;
|
||||
|
||||
totalInputs = 0;
|
||||
totalPlayerAccuracy = 0;
|
||||
|
||||
TimingAccuracyDisplay.instance.ResetArrow();
|
||||
SkillStarManager.instance.Reset();
|
||||
skillStarCollected = false;
|
||||
@ -807,7 +791,6 @@ namespace HeavenStudio
|
||||
}
|
||||
else if (playMode)
|
||||
{
|
||||
judgementInfo.finalScore = (float)PlayerAccuracy;
|
||||
judgementInfo.star = skillStarCollected;
|
||||
judgementInfo.perfect = GoForAPerfect.instance.perfect;
|
||||
judgementInfo.time = DateTime.Now;
|
||||
|
Reference in New Issue
Block a user