mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Match ParseExtra functions (#605)
* Match ParseExtra functions * Match MxStillPresenter::ParseExtra * Match remaining ParseExtra functions
This commit is contained in:

committed by
GitHub

parent
ff04b0ba5a
commit
49d6c88912
@@ -96,13 +96,15 @@ void LegoEntityPresenter::SetEntityLocation(
|
||||
// FUNCTION: LEGO1 0x10053750
|
||||
void LegoEntityPresenter::ParseExtra()
|
||||
{
|
||||
char data[512];
|
||||
MxU16 len = m_action->GetExtraLength();
|
||||
if (len) {
|
||||
memcpy(data, m_action->GetExtraData(), len);
|
||||
data[len] = 0;
|
||||
MxU16 extraLength;
|
||||
char* extraData;
|
||||
m_action->GetExtra(extraLength, extraData);
|
||||
|
||||
len &= MAXWORD;
|
||||
m_entity->ParseAction(data);
|
||||
if (extraLength & MAXWORD) {
|
||||
char extraCopy[512];
|
||||
memcpy(extraCopy, extraData, extraLength & MAXWORD);
|
||||
extraCopy[extraLength & MAXWORD] = '\0';
|
||||
|
||||
m_entity->ParseAction(extraCopy);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user