From beba3bf8a47a4c2480eb9d20ebc0c7dab5577348 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 30 Apr 2010 15:08:51 +0000 Subject: SCI: animate cleanup svn-id: r48876 --- engines/sci/graphics/animate.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp index a8c4041e8b..6d9ff9afb5 100644 --- a/engines/sci/graphics/animate.cpp +++ b/engines/sci/graphics/animate.cpp @@ -197,9 +197,6 @@ void GfxAnimate::makeSortedList(List *list) { } // Now sort the list according y and z (descending) - AnimateList::iterator listBegin = _list.begin(); - AnimateList::iterator listEnd = _list.end(); - Common::sort(_list.begin(), _list.end(), sortHelper); } @@ -522,28 +519,6 @@ void GfxAnimate::reAnimate(Common::Rect rect) { } else { _paint16->bitsShow(rect); } - - /* - if (!_lastCast->isEmpty()) { - HEAPHANDLE hnode = _lastCast->getFirst(); - sciCast *pCast; - CResView *res; - while (hnode) { - pCast = (sciCast *)heap2Ptr(hnode); - res = (CResView *)ResMgr.ResLoad(SCI_RES_VIEW, pCast->view); - pCast->hSaved = _gfx->SaveBits(pCast->rect, 3); - res->drawCel(pCast->loop, pCast->cel, &pCast->rect, pCast->z, pCast->pal); - hnode = pCast->node.next; - } - _gfx->BitsShow(rect); - // restoring - hnode = _lastCast->getLast(); - while (hnode) { - pCast = (sciCast *)heap2Ptr(hnode); - _gfx->BitsShow(pCast->hSaved); - hnode = pCast->node.prev; - } - */ } void GfxAnimate::addToPicDrawCels() { -- cgit v1.2.3