diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-23 14:44:20 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-06-23 14:44:20 +0000 |
commit | 4ec7db55c227d3c38f2358fa74ff2649d6583391 (patch) | |
tree | 20f784d7a90b1a22b377ffd0d55fb3251986b5e2 /src/imageparticle.cpp | |
parent | 6e9aa693c6f07c99e5b84ee35570a14efe4df393 (diff) | |
download | mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.gz mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.bz2 mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.tar.xz mana-4ec7db55c227d3c38f2358fa74ff2649d6583391.zip |
Implemented "alpha" particle property.
Diffstat (limited to 'src/imageparticle.cpp')
-rw-r--r-- | src/imageparticle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imageparticle.cpp b/src/imageparticle.cpp index 17581a2a..965434b0 100644 --- a/src/imageparticle.cpp +++ b/src/imageparticle.cpp @@ -56,7 +56,7 @@ void ImageParticle::draw(Graphics *graphics, int offsetX, int offsetY) const return; } - float alphafactor = 1.0f; + float alphafactor = mAlpha; if (mLifetimeLeft > -1 && mLifetimeLeft < mFadeOut) alphafactor *= (float) mLifetimeLeft / (float) mFadeOut; |