summaryrefslogtreecommitdiff
path: root/src/particle.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-10-17 00:47:38 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-10-17 00:50:51 +0200
commit02a014605d19d0d38c14cafa462a2539d63950df (patch)
treeac831646a8e10f8972f6f3e2ed7cc7acfa7607c8 /src/particle.h
parent9824ccf5946c86df1cf497b797c5f3da5d481d28 (diff)
downloadmana-client-02a014605d19d0d38c14cafa462a2539d63950df.tar.gz
mana-client-02a014605d19d0d38c14cafa462a2539d63950df.tar.bz2
mana-client-02a014605d19d0d38c14cafa462a2539d63950df.tar.xz
mana-client-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.h3
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*/