diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-10-17 00:47:38 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-10-17 00:50:51 +0200 |
commit | 02a014605d19d0d38c14cafa462a2539d63950df (patch) | |
tree | ac831646a8e10f8972f6f3e2ed7cc7acfa7607c8 /src/particle.h | |
parent | 9824ccf5946c86df1cf497b797c5f3da5d481d28 (diff) | |
download | mana-02a014605d19d0d38c14cafa462a2539d63950df.tar.gz mana-02a014605d19d0d38c14cafa462a2539d63950df.tar.bz2 mana-02a014605d19d0d38c14cafa462a2539d63950df.tar.xz mana-02a014605d19d0d38c14cafa462a2539d63950df.zip |
Fixed wrong alpha calculation of text particles
This resolves: http://bugs.manasource.org/view.php?id=51
Reviewed-by: Bertram
Diffstat (limited to 'src/particle.h')
-rw-r--r-- | src/particle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/particle.h b/src/particle.h index 0690e8c4..69f8c2be 100644 --- a/src/particle.h +++ b/src/particle.h @@ -286,6 +286,9 @@ class Particle : public Sprite { return 1; } protected: + /** Calculates the current alpha transparency taking current fade status into account*/ + float getCurrentAlpha() const; + bool mAlive; /**< Is the particle supposed to be drawn and updated?*/ Vector mPos; /**< Position in pixels relative to map. */ int mLifetimeLeft; /**< Lifetime left in game ticks*/ |