diff options
author | Gregory Montoir | 2004-01-23 10:34:57 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-23 10:34:57 +0000 |
commit | 82e005fe5ad3803745b47f15fe8463b7709bf1a3 (patch) | |
tree | 0070e6cf67e22ba6880ac795cc72f08d35e1bfd3 /queen/graphics.cpp | |
parent | 28b365803b3e1dbffb453bb53b23dfa7db9e7277 (diff) | |
download | scummvm-rg350-82e005fe5ad3803745b47f15fe8463b7709bf1a3.tar.gz scummvm-rg350-82e005fe5ad3803745b47f15fe8463b7709bf1a3.tar.bz2 scummvm-rg350-82e005fe5ad3803745b47f15fe8463b7709bf1a3.zip |
use BobSlot::clear instead of Graphics::clearBob
svn-id: r12580
Diffstat (limited to 'queen/graphics.cpp')
-rw-r--r-- | queen/graphics.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/queen/graphics.cpp b/queen/graphics.cpp index a5ec6c6c9b..80de743969 100644 --- a/queen/graphics.cpp +++ b/queen/graphics.cpp @@ -314,11 +314,6 @@ void Graphics::shrinkFrame(const BobFrame *bf, uint16 percentage) { } } -void Graphics::clearBob(uint32 bobNum) { - BobSlot *pbs = bob(bobNum); - pbs->clear(); -} - void Graphics::sortBobs() { _sortedBobsCount = 0; @@ -393,7 +388,7 @@ void Graphics::drawBobs() { void Graphics::clearBobs() { for(int32 i = 0; i < ARRAYSIZE(_bobs); ++i) { - clearBob(i); + _bobs[i].clear(); } } @@ -782,7 +777,7 @@ uint16 Graphics::refreshObject(uint16 obj) { if (pod->image == -3 || pod->image == -4) { // a person object if (pod->name <= 0) { - clearBob(curBob); + pbs->clear(); } else { // find person number uint16 pNum = _vm->logic()->findPersonNumber(obj); @@ -800,7 +795,7 @@ uint16 Graphics::refreshObject(uint16 obj) { if (pod->name < 0 || pod->image < 0) { // object is hidden or disabled - clearBob(curBob); + pbs->clear(); return curImage; } @@ -982,7 +977,7 @@ void Graphics::setupRoomObjects() { // static objects curBob = 20 + _numFurnitureStatic + numObjectStatic; ++curImage; - clearBob(curBob); + bob(curBob)->clear(); _vm->bankMan()->unpack(pgd->firstFrame, curImage, 15); ++_numFrames; |