mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-30 11:41:16 +00:00
Rename var
This commit is contained in:
parent
d0233dd2d9
commit
4420bbd6a8
@ -67,42 +67,42 @@ void MxMediaPresenter::Destroy(MxBool p_fromDestructor)
|
|||||||
// FUNCTION: LEGO1 0x100b5650
|
// FUNCTION: LEGO1 0x100b5650
|
||||||
MxStreamChunk* MxMediaPresenter::CurrentChunk()
|
MxStreamChunk* MxMediaPresenter::CurrentChunk()
|
||||||
{
|
{
|
||||||
MxStreamChunk* result = NULL;
|
MxStreamChunk* chunk = NULL;
|
||||||
|
|
||||||
if (m_subscriber) {
|
if (m_subscriber) {
|
||||||
result = m_subscriber->CurrentChunk();
|
chunk = m_subscriber->CurrentChunk();
|
||||||
|
|
||||||
if (result && result->GetFlags() & MxDSChunk::Flag_Bit3) {
|
if (chunk && chunk->GetFlags() & MxDSChunk::Flag_Bit3) {
|
||||||
m_action->SetFlags(m_action->GetFlags() | MxDSAction::Flag_Bit7);
|
m_action->SetFlags(m_action->GetFlags() | MxDSAction::Flag_Bit7);
|
||||||
m_subscriber->NextChunk();
|
m_subscriber->NextChunk();
|
||||||
m_subscriber->DestroyChunk(result);
|
m_subscriber->DestroyChunk(chunk);
|
||||||
result = NULL;
|
chunk = NULL;
|
||||||
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
||||||
m_currentTickleState = TickleState_Done;
|
m_currentTickleState = TickleState_Done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100b56b0
|
// FUNCTION: LEGO1 0x100b56b0
|
||||||
MxStreamChunk* MxMediaPresenter::NextChunk()
|
MxStreamChunk* MxMediaPresenter::NextChunk()
|
||||||
{
|
{
|
||||||
MxStreamChunk* result = NULL;
|
MxStreamChunk* chunk = NULL;
|
||||||
|
|
||||||
if (m_subscriber) {
|
if (m_subscriber) {
|
||||||
result = m_subscriber->NextChunk();
|
chunk = m_subscriber->NextChunk();
|
||||||
|
|
||||||
if (result && result->GetFlags() & MxDSChunk::Flag_Bit3) {
|
if (chunk && chunk->GetFlags() & MxDSChunk::Flag_Bit3) {
|
||||||
m_action->SetFlags(m_action->GetFlags() | MxDSAction::Flag_Bit7);
|
m_action->SetFlags(m_action->GetFlags() | MxDSAction::Flag_Bit7);
|
||||||
m_subscriber->DestroyChunk(result);
|
m_subscriber->DestroyChunk(chunk);
|
||||||
result = NULL;
|
chunk = NULL;
|
||||||
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
|
||||||
m_currentTickleState = TickleState_Done;
|
m_currentTickleState = TickleState_Done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return chunk;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100b5700
|
// FUNCTION: LEGO1 0x100b5700
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user