mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Implement/match LegoLoopingAnimPresenter (#924)
This commit is contained in:
committed by
GitHub
parent
29a0e32739
commit
9a05edd0a7
@@ -192,8 +192,9 @@ void MxWavePresenter::StreamingTickle()
|
||||
if (!(m_action->GetFlags() & MxDSAction::c_looping)) {
|
||||
MxStreamChunk* chunk = CurrentChunk();
|
||||
|
||||
if (chunk && chunk->GetFlags() & MxDSChunk::c_end && !(chunk->GetFlags() & MxDSChunk::c_bit16)) {
|
||||
chunk->SetFlags(chunk->GetFlags() | MxDSChunk::c_bit16);
|
||||
if (chunk && chunk->GetChunkFlags() & DS_CHUNK_END_OF_STREAM &&
|
||||
!(chunk->GetChunkFlags() & DS_CHUNK_BIT16)) {
|
||||
chunk->SetChunkFlags(chunk->GetChunkFlags() | DS_CHUNK_BIT16);
|
||||
|
||||
m_currentChunk = new MxStreamChunk;
|
||||
MxU8* data = new MxU8[m_chunkLength];
|
||||
@@ -203,7 +204,7 @@ void MxWavePresenter::StreamingTickle()
|
||||
m_currentChunk->SetLength(m_chunkLength);
|
||||
m_currentChunk->SetData(data);
|
||||
m_currentChunk->SetTime(chunk->GetTime() + 1000);
|
||||
m_currentChunk->SetFlags(MxDSChunk::c_bit1);
|
||||
m_currentChunk->SetChunkFlags(DS_CHUNK_BIT1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user