summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp6
-rw-r--r--src/being/localplayer.cpp5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 785961e47..194bfb526 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -660,9 +660,9 @@ void Being::takeDamage(Being *restrict const attacker,
BLOCK_START("Being::takeDamage1")
Font *font = nullptr;
- // TRANSLATORS: hit or miss message in attacks
- const std::string damage = amount ? toString(amount)
- : type == AttackType::FLEE ? _("dodge") : _("miss");
+ const std::string damage = amount ? toString(amount) :
+ // TRANSLATORS: dodge or miss message in attacks
+ type == AttackType::FLEE ? _("dodge") : _("miss");
const Color *color;
if (gui)
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 91a601711..1d0fd92aa 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -1085,8 +1085,9 @@ void LocalPlayer::addJobMessage(const int change)
{
MessagePair pair = mMessages.back();
// TRANSLATORS: this is normal experience
- if (pair.first.find(strprintf(" %s", _("xp")))
- == pair.first.size() - strlen(_("xp")) - 1)
+ if (pair.first.find(strprintf(" %s", _("xp"))) ==
+ // TRANSLATORS: this is normal experience
+ pair.first.size() - strlen(_("xp")) - 1)
{
mMessages.pop_back();
// TRANSLATORS: this is job experience