Add Pack Offset and Group Banners to pack.ini, Remove debug logging
This commit is contained in:
+6
-5
@@ -18,7 +18,7 @@ static const int INVALID_INDEX = -1;
|
||||
|
||||
TimingSegment* GetSegmentAtRow( int iNoteRow, TimingSegmentType tst );
|
||||
|
||||
TimingData::TimingData(float fOffset) : m_fBeat0OffsetInSeconds(fOffset)
|
||||
TimingData::TimingData(float fOffset) : m_fBeat0OffsetInSeconds(fOffset), m_fBeat0PackOffsetInSeconds(0.0f)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ void TimingData::Copy( const TimingData& cpy )
|
||||
Clear();
|
||||
|
||||
m_fBeat0OffsetInSeconds = cpy.m_fBeat0OffsetInSeconds;
|
||||
m_fBeat0PackOffsetInSeconds = cpy.m_fBeat0PackOffsetInSeconds;
|
||||
m_sFile = cpy.m_sFile;
|
||||
|
||||
FOREACH_TimingSegmentType( tst )
|
||||
@@ -102,14 +103,14 @@ void TimingData::PrepareLookup()
|
||||
curr_segment < total_segments; curr_segment+= segments_per_lookup)
|
||||
{
|
||||
GetBeatStarts beat_start;
|
||||
beat_start.last_time= -m_fBeat0OffsetInSeconds;
|
||||
beat_start.last_time= -m_fBeat0OffsetInSeconds - m_fBeat0PackOffsetInSeconds;
|
||||
GetBeatArgs args;
|
||||
args.elapsed_time= FLT_MAX;
|
||||
GetBeatInternal(beat_start, args, curr_segment);
|
||||
m_beat_start_lookup.push_back(lookup_item_t(args.elapsed_time, beat_start));
|
||||
|
||||
GetBeatStarts time_start;
|
||||
time_start.last_time= -m_fBeat0OffsetInSeconds;
|
||||
time_start.last_time= -m_fBeat0OffsetInSeconds - m_fBeat0PackOffsetInSeconds;
|
||||
m_time_start_lookup.push_back(lookup_item_t(NoteRowToBeat(time_start.last_row), time_start));
|
||||
}
|
||||
// If there are less than two entries, then FindEntryInLookup in lookup
|
||||
@@ -916,7 +917,7 @@ void TimingData::GetBeatInternal(GetBeatStarts& start, GetBeatArgs& args,
|
||||
void TimingData::GetBeatAndBPSFromElapsedTimeNoOffset(GetBeatArgs& args) const
|
||||
{
|
||||
GetBeatStarts start;
|
||||
start.last_time= -m_fBeat0OffsetInSeconds;
|
||||
start.last_time= -m_fBeat0OffsetInSeconds - m_fBeat0PackOffsetInSeconds;
|
||||
beat_start_lookup_t::const_iterator looked_up_start=
|
||||
FindEntryInLookup(m_beat_start_lookup, args.elapsed_time);
|
||||
if(looked_up_start != m_beat_start_lookup.end())
|
||||
@@ -1001,7 +1002,7 @@ float TimingData::GetElapsedTimeFromBeat( float fBeat ) const
|
||||
float TimingData::GetElapsedTimeFromBeatNoOffset( float fBeat ) const
|
||||
{
|
||||
GetBeatStarts start;
|
||||
start.last_time= -m_fBeat0OffsetInSeconds;
|
||||
start.last_time= -m_fBeat0OffsetInSeconds - m_fBeat0PackOffsetInSeconds;
|
||||
beat_start_lookup_t::const_iterator looked_up_start=
|
||||
FindEntryInLookup(m_time_start_lookup, fBeat);
|
||||
if(looked_up_start != m_time_start_lookup.end())
|
||||
|
||||
Reference in New Issue
Block a user