summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-19 16:58:38 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-19 16:58:38 +0300
commit87539666b11b2e61c4259404bf01ec8a5695052c (patch)
tree317bae6e141aa73a895864c33c879aca0d2cc17b
parent164e4ed5a153ce06badb52f3a5a4dff16c58d7e6 (diff)
downloadmanaverse-87539666b11b2e61c4259404bf01ec8a5695052c.tar.gz
manaverse-87539666b11b2e61c4259404bf01ec8a5695052c.tar.bz2
manaverse-87539666b11b2e61c4259404bf01ec8a5695052c.tar.xz
manaverse-87539666b11b2e61c4259404bf01ec8a5695052c.zip
Fix display combined xp+job particle if used client data translations.
-rw-r--r--src/localplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 4675f80cf..03199f7be 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1677,7 +1677,7 @@ void LocalPlayer::processEvent(Channels channel,
- event.getInt("oldValue");
if (change != 0)
- addMessageToQueue(toString(change) + " xp");
+ addMessageToQueue(strprintf("%d %s", change, _("xp")));
break;
}
case LEVEL:
@@ -1711,7 +1711,8 @@ void LocalPlayer::processEvent(Channels channel,
MessagePair pair = mMessages.back();
// TRANSLATORS: this is normal experience
if (pair.first.find(strprintf(" %s",
- _("xp"))) == pair.first.size() - 3)
+ _("xp"))) == pair.first.size()
+ - strlen(_("xp")) - 1)
{
mMessages.pop_back();
// TRANSLATORS: this is job experience