diff options
author | Blue <bluesansdouze@gmail.com> | 2009-05-18 01:19:32 +0200 |
---|---|---|
committer | Blue <bluesansdouze@gmail.com> | 2009-05-18 01:19:32 +0200 |
commit | 7b76f0e8c4c489254d7519e2916b951601423801 (patch) | |
tree | e4430176f02eeec32ebb56b42933b6416e7895df /src/localplayer.cpp | |
parent | 22685431a23b05d66af28abda488d0891b1c0a34 (diff) | |
parent | aaec4d115cd0048bbc4bed3d8b1d33492b2a51fa (diff) | |
download | mana-7b76f0e8c4c489254d7519e2916b951601423801.tar.gz mana-7b76f0e8c4c489254d7519e2916b951601423801.tar.bz2 mana-7b76f0e8c4c489254d7519e2916b951601423801.tar.xz mana-7b76f0e8c4c489254d7519e2916b951601423801.zip |
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index c1423190..e9bc30f2 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -727,10 +727,10 @@ void LocalPlayer::stopAttack() { if (mTarget) { - setAction(STAND); - mLastTarget = -1; + if (mAction == ATTACK) + setAction(STAND); + setTarget(NULL); } - setTarget(NULL); mLastTarget = -1; } @@ -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); } @@ -946,7 +946,8 @@ void LocalPlayer::initTargetCursor() true, TC_LARGE); } -void LocalPlayer::loadTargetCursor(std::string filename, int width, int height, +void LocalPlayer::loadTargetCursor(const std::string &filename, + int width, int height, bool outRange, TargetCursorSize size) { assert(size > -1); |