diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-10 21:16:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-10 21:35:34 +0300 |
commit | dacaf242cd28169a279e08c1d001afb5b7729d33 (patch) | |
tree | 7460b20034cf836740280f7e5ad6cd4625e3029e /src/being.cpp | |
parent | 121db99fb8227c2c1a2ba54801fad3c814ce06c2 (diff) | |
download | manaplus-dacaf242cd28169a279e08c1d001afb5b7729d33.tar.gz manaplus-dacaf242cd28169a279e08c1d001afb5b7729d33.tar.bz2 manaplus-dacaf242cd28169a279e08c1d001afb5b7729d33.tar.xz manaplus-dacaf242cd28169a279e08c1d001afb5b7729d33.zip |
Add some strings to translations.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/being.cpp b/src/being.cpp index 659b883bc..5b9e4496d 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -550,14 +550,15 @@ void Being::takeDamage(Being *attacker, int amount, AttackType type) { if (attacker->getType() == PLAYER || amount) { - chatWindow->battleChatLog(attacker->getName() + " : Hit you -" - + toString(amount), BY_OTHER); + chatWindow->battleChatLog(strprintf("%s : Hit you -%d", + attacker->getName().c_str(), amount), BY_OTHER); } } else if (attacker == player_node && amount) { - chatWindow->battleChatLog(attacker->getName() + " : You hit " - + getName() + " -" + toString(amount), BY_PLAYER); + chatWindow->battleChatLog(strprintf("%s : You hit %s -%d", + attacker->getName().c_str(), getName().c_str(), amount), + BY_PLAYER); } } if (font && particleEngine) @@ -1795,18 +1796,6 @@ bool Being::drawSpriteAt(Graphics *graphics, int x, int y) const graphics->fillRectangle(gcn::Rectangle( x, y, 32, 32)); -/* - int num = socialWindow->getPortalIndex(getTileX(), getTileY()); - if (num >= 0) - { - std::string str = outfitWindow->keyName(num); - if (str.length() > 4) - str = str.substr(0, 4); - gcn::Font *font = gui->getFont(); - graphics->setColor(userPalette->getColor(UserPalette::BEING)); - font->drawString(graphics, str, x, y); - } -*/ if (mDrawHotKeys && !mName.empty()) { gcn::Font *font = gui->getFont(); |