summaryrefslogtreecommitdiff
path: root/src/textparticle.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 16:42:47 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 16:42:47 +0000
commit3641a74507d692a7fbababfd8beb738f71e48acb (patch)
tree78d9235fe86ff2e958edb2cc2f777bbaade7607c /src/textparticle.cpp
parent55786731e0517efdc123d4e8245b2aa94fa55cbe (diff)
downloadmana-client-3641a74507d692a7fbababfd8beb738f71e48acb.tar.gz
mana-client-3641a74507d692a7fbababfd8beb738f71e48acb.tar.bz2
mana-client-3641a74507d692a7fbababfd8beb738f71e48acb.tar.xz
mana-client-3641a74507d692a7fbababfd8beb738f71e48acb.zip
Added Vector class and used it in the particle engine.
Diffstat (limited to 'src/textparticle.cpp')
-rw-r--r--src/textparticle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textparticle.cpp b/src/textparticle.cpp
index 4ea4dbdc..4bc859cd 100644
--- a/src/textparticle.cpp
+++ b/src/textparticle.cpp
@@ -42,8 +42,8 @@ void TextParticle::draw(Graphics *graphics, int offsetX, int offsetY) const
if (!mAlive)
return;
- int screenX = (int) mPosX + offsetX;
- int screenY = (int) mPosY - (int) mPosZ + offsetY;
+ int screenX = (int) mPos.x + offsetX;
+ int screenY = (int) mPos.y - (int) mPos.z + offsetY;
int alpha = 255;