diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 32b3d0f0e95..c80ff7da969 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -920,22 +920,22 @@ Common::List *SciGuiGfx::AnimateMakeSortedList(List *list) { return sortedList; // First convert the given List to Common::List - while (curNode) { - curObject = curNode->value; - listHelper.address = curAddress; - listHelper.y = (int16)GET_SEL32V(curObject, y); - listHelper.z = (int16)GET_SEL32V(curObject, priority); - sortedList->push_back(listHelper); +// while (curNode) { +// curObject = curNode->value; +// listHelper.address = curAddress; +// listHelper.y = (int16)GET_SEL32V(curObject, y); +// listHelper.z = (int16)GET_SEL32V(curObject, priority); +// sortedList->push_back(listHelper); - curAddress = curNode->succ; - curNode = _s->_segMan->lookupNode(curAddress); - } +// curAddress = curNode->succ; +// curNode = _s->_segMan->lookupNode(curAddress); +// } // Now do a bubble sort on this Common::List - if (sortedList->size() < 2) - return sortedList; +// if (sortedList->size() < 2) +// return sortedList; - sortedList->begin(); +// sortedList->begin(); // Common::List::iterator iter; // for (iter = s->_executionStack.begin(); // iter != s->_executionStack.end(); ++iter) { diff --git a/engines/sci/gui/gui_helpers.h b/engines/sci/gui/gui_helpers.h index 3a7fa67e144..f66715f275e 100644 --- a/engines/sci/gui/gui_helpers.h +++ b/engines/sci/gui/gui_helpers.h @@ -72,9 +72,13 @@ struct GuiWindow : public GuiPort { }; struct GuiAnimateList { - reg_t address; - int16 y; - int16 z; + reg_t object; + GuiResourceId viewId; + GuiViewLoopNo loopNo; + GuiViewCelNo celNo; + int16 x, y, z; + uint16 priority, signal; + Common::Rect celRect; }; struct GuiCast {