diff options
author | Colin Snover | 2016-03-10 14:13:57 -0600 |
---|---|---|
committer | Colin Snover | 2016-03-10 14:16:56 -0600 |
commit | 695e5db9a7a051a1b4a37c4bbc1c89c333bbac22 (patch) | |
tree | 5fa3ce1c42f7b658bc9cda498b19b04719eb026a /engines/sci/graphics/plane32.cpp | |
parent | 0bb4c32c50cddecd696e581b5b642de18750d392 (diff) | |
download | scummvm-rg350-695e5db9a7a051a1b4a37c4bbc1c89c333bbac22.tar.gz scummvm-rg350-695e5db9a7a051a1b4a37c4bbc1c89c333bbac22.tar.bz2 scummvm-rg350-695e5db9a7a051a1b4a37c4bbc1c89c333bbac22.zip |
SCI32: Remove side-effect-abusing calls to ScreenItem::getCelObj
Diffstat (limited to 'engines/sci/graphics/plane32.cpp')
-rw-r--r-- | engines/sci/graphics/plane32.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp index 4487070948..04cfa5a556 100644 --- a/engines/sci/graphics/plane32.cpp +++ b/engines/sci/graphics/plane32.cpp @@ -325,7 +325,6 @@ void Plane::calcLists(Plane &visiblePlane, const PlaneList &planeList, DrawList } } else if (item->_created) { // add item to draw list - item->getCelObj(); item->calcRects(*this); if(!item->_screenRect.isEmpty()) { @@ -338,7 +337,6 @@ void Plane::calcLists(Plane &visiblePlane, const PlaneList &planeList, DrawList } } else if (item->_updated) { // add old rect to erase list, new item to draw list - item->getCelObj(); item->calcRects(*this); if (/* TODO: g_Remap_numActiveRemaps */ false) { // active remaps // if item and vitem don't overlap, ... @@ -691,7 +689,6 @@ void Plane::redrawAll(Plane *visiblePlane, const PlaneList &planeList, DrawList if (*screenItemPtr != nullptr) { ScreenItem &screenItem = **screenItemPtr; if (!screenItem._deleted) { - screenItem.getCelObj(); screenItem.calcRects(*this); if (!screenItem._screenRect.isEmpty()) { drawList.add(&screenItem, screenItem._screenRect); |