mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 07:37:45 +00:00
wip: encounter timeline oops
This commit is contained in:
parent
cf712cb3c8
commit
a4d712f32c
1 changed files with 7 additions and 3 deletions
|
@ -399,8 +399,13 @@ namespace Sapphire
|
|||
state.m_startTime = time;
|
||||
if( state.m_phaseInfo.m_startTime == 0 )
|
||||
state.m_phaseInfo.m_startTime = time;
|
||||
|
||||
if( state.m_phaseInfo.m_lastTimepointTime == 0 )
|
||||
{
|
||||
state.m_phaseInfo.m_lastTimepointTime = time;
|
||||
state.m_phaseInfo.m_timepointStates.clear();
|
||||
state.m_phaseInfo.m_timepointStates.resize( m_timepoints.size() );
|
||||
}
|
||||
|
||||
for( auto i = state.m_phaseInfo.m_lastTimepointIndex; i < m_timepoints.size(); )
|
||||
{
|
||||
|
@ -443,8 +448,7 @@ namespace Sapphire
|
|||
state.m_phaseInfo.m_lastTimepointTime = 0;
|
||||
|
||||
state.m_phaseInfo.m_timepointStates.clear();
|
||||
for( auto i = 0; i < m_timepoints.size(); ++i )
|
||||
state.m_phaseInfo.m_timepointStates.push_back( {} );
|
||||
state.m_phaseInfo.m_timepointStates.resize( m_timepoints.size() );
|
||||
}
|
||||
|
||||
bool completed( ConditionState& state ) const
|
||||
|
|
Loading…
Add table
Reference in a new issue