From 14d7b12e9e3be7534d6c3683fd391eb28f95cd77 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Mar 2016 00:23:01 +0300 Subject: Split drawSprites in Being/CompoundSprite into drawSprites and drawPlayerSprites. --- src/being/compoundsprite.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/being/compoundsprite.cpp') diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index 2af54f247..af2e60d55 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -136,33 +136,6 @@ bool CompoundSprite::update(const int time) return ret; } -void CompoundSprite::draw(Graphics *const graphics, - const int posX, - const int posY) const -{ - FUNC_BLOCK("CompoundSprite::draw", 1) - if (mNeedsRedraw) - updateImages(); - - if (mSprites.empty()) // Nothing to draw - return; - - if (mAlpha == 1.0F && mImage) - { - graphics->drawImage(mImage, posX + mOffsetX, posY + mOffsetY); - } - else if (mAlpha && mAlphaImage) - { - mAlphaImage->setAlpha(mAlpha); - graphics->drawImage(mAlphaImage, - posX + mOffsetX, posY + mOffsetY); - } - else - { - drawSprites(graphics, posX, posY); - } -} - void CompoundSprite::drawSimple(Graphics *const graphics, const int posX, const int posY) const -- cgit v1.2.3-60-g2f50