summaryrefslogtreecommitdiff
path: root/src/imagesprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-28 21:34:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-28 21:34:28 +0300
commit8d276b3f5707035600c051d1746697cf7d815140 (patch)
treeb94a9b87ace1cd3638b322607fb54afdfc4c6279 /src/imagesprite.cpp
parent5ae7168e1f30efa4fd61c155eaecd55ce83bea14 (diff)
downloadManaVerse-8d276b3f5707035600c051d1746697cf7d815140.tar.gz
ManaVerse-8d276b3f5707035600c051d1746697cf7d815140.tar.bz2
ManaVerse-8d276b3f5707035600c051d1746697cf7d815140.tar.xz
ManaVerse-8d276b3f5707035600c051d1746697cf7d815140.zip
improve other files.
Diffstat (limited to 'src/imagesprite.cpp')
-rw-r--r--src/imagesprite.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imagesprite.cpp b/src/imagesprite.cpp
index 7d19034e5..887ef0bdd 100644
--- a/src/imagesprite.cpp
+++ b/src/imagesprite.cpp
@@ -55,8 +55,6 @@ bool ImageSprite::draw(Graphics *const graphics,
if (!mImage)
return false;
- if (mImage->getAlpha() != mAlpha)
- mImage->setAlpha(mAlpha);
-
+ mImage->setAlpha(mAlpha);
return graphics->drawImage(mImage, posX, posY);
}