summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-05-17 01:57:50 +0200
committerDennis Friis <peavey@inspircd.org>2009-05-17 02:14:35 +0200
commit98eadea1f98f76237701d2ac44868847a18d13c2 (patch)
treec41e33b1375dbf018ab65fa4815f759d1825620a
parentafe09f20caa9ee3a690ea2b84bdaee19464b45bc (diff)
downloadmana-98eadea1f98f76237701d2ac44868847a18d13c2.tar.gz
mana-98eadea1f98f76237701d2ac44868847a18d13c2.tar.bz2
mana-98eadea1f98f76237701d2ac44868847a18d13c2.tar.xz
mana-98eadea1f98f76237701d2ac44868847a18d13c2.zip
Fix offsets (16,32) on TextEffects for damage, pickup and exp.
-rw-r--r--src/being.cpp2
-rw-r--r--src/localplayer.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 2b31e9ec..37cb6987 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -448,7 +448,7 @@ void Being::takeDamage(Being *attacker, int amount, AttackType type)
// Show damage number
particleEngine->addTextSplashEffect(damage,
- mPx + 16, mPy + 16,
+ mPx, mPy - 16,
color, font, true);
if (amount > 0)
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 7119bfc9..650de182 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -812,8 +812,8 @@ void LocalPlayer::setXp(int xp)
// Show XP number
particleEngine->addTextRiseFadeOutEffect(
text,
- getPixelX() + 16,
- getPixelY() - 16,
+ getPixelX(),
+ getPixelY() - 48,
&guiPalette->getColor(Palette::EXP_INFO),
gui->getInfoParticleFont(), true);
}
@@ -829,8 +829,8 @@ void LocalPlayer::pickedUp(const std::string &item)
// Show pickup notification
particleEngine->addTextRiseFadeOutEffect(
item,
- getPixelX() + 16,
- getPixelY() - 16,
+ getPixelX(),
+ getPixelY() - 48,
&guiPalette->getColor(Palette::PICKUP_INFO),
gui->getInfoParticleFont(), true);
}