mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Minor improvement
This commit is contained in:
parent
4bbbc7fb20
commit
052b58971b
@ -68,7 +68,7 @@ class LegoWorld : public LegoEntity {
|
||||
inline void SetUnknown0xec(undefined4 p_unk0xec) { m_unk0xec = p_unk0xec; }
|
||||
inline undefined4 GetUnknown0xec() { return m_unk0xec; }
|
||||
inline MxCoreSet& GetUnknown0xd0() { return m_set0xd0; }
|
||||
inline list<AutoROI*>* GetUnknownList0xe0() { return &m_list0xe0; }
|
||||
inline list<AutoROI*>& GetUnknownList0xe0() { return m_list0xe0; }
|
||||
|
||||
MxBool PresentersPending();
|
||||
void Remove(MxCore* p_object);
|
||||
|
||||
@ -132,12 +132,12 @@ void LegoModelPresenter::ParseExtra()
|
||||
}
|
||||
else if (KeyValueStringParse(output, g_dbCreate, buffer) != 0 && m_roi == NULL) {
|
||||
LegoWorld* currentWorld = CurrentWorld();
|
||||
for (list<AutoROI*>::iterator it = currentWorld->GetUnknownList0xe0()->begin();
|
||||
it != currentWorld->GetUnknownList0xe0()->end();
|
||||
it++) {
|
||||
list<AutoROI*>& roiList = currentWorld->GetUnknownList0xe0();
|
||||
|
||||
for (list<AutoROI*>::iterator it = roiList.begin(); it != roiList.end(); it++) {
|
||||
if (!strcmpi(((LegoROI*) (*it))->GetUnknown0xe4(), output)) {
|
||||
m_roi = *it;
|
||||
currentWorld->GetUnknownList0xe0()->erase(it);
|
||||
roiList.erase(it);
|
||||
|
||||
m_addedToView = TRUE;
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->Add(*m_roi);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user