More prep work for better radar calculations.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "Trail.h"
|
||||
#include "Foreach.h"
|
||||
#include "GameState.h"
|
||||
#include "Steps.h"
|
||||
#include "Song.h"
|
||||
#include "PlayerOptions.h"
|
||||
@@ -116,6 +117,7 @@ const RadarValues &Trail::GetRadarValues() const
|
||||
NoteData nd;
|
||||
pSteps->GetNoteData( nd );
|
||||
RadarValues rv_orig;
|
||||
GAMESTATE->SetProcessedTimingData(const_cast<TimingData *>(&pSteps->m_Timing));
|
||||
NoteDataUtil::CalculateRadarValues( nd, e->pSong->m_fMusicLengthSeconds, rv_orig );
|
||||
PlayerOptions po;
|
||||
po.FromString( e->Modifiers );
|
||||
@@ -124,6 +126,7 @@ const RadarValues &Trail::GetRadarValues() const
|
||||
NoteDataUtil::TransformNoteData( nd, e->Attacks, pSteps->m_StepsType, e->pSong );
|
||||
RadarValues transformed_rv;
|
||||
NoteDataUtil::CalculateRadarValues( nd, e->pSong->m_fMusicLengthSeconds, transformed_rv );
|
||||
GAMESTATE->SetProcessedTimingData(NULL);
|
||||
rv += transformed_rv;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user