summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
commitfe6a120ea38daaad39f6952a886c20269cfedca6 (patch)
tree4595d63a2ab9764873657182fbf2ab2b985474bf /src/being/being.cpp
parent6279b10249efa59b3161b014899465fe4bb08da4 (diff)
downloadplus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.gz
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.bz2
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.xz
plus-fe6a120ea38daaad39f6952a886c20269cfedca6.zip
Move chatmsgtype into separate file.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 0d72585f1..d3df414c5 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -562,14 +562,15 @@ void Being::takeDamage(Being *const attacker, const int amount,
if (attacker->mType == ActorType::PLAYER || amount)
{
chatWindow->battleChatLog(strprintf("%s : Hit you -%d",
- attacker->getName().c_str(), amount), BY_OTHER);
+ attacker->getName().c_str(), amount),
+ ChatMsgType::BY_OTHER);
}
}
else if (attacker == player_node && amount)
{
chatWindow->battleChatLog(strprintf("%s : You hit %s -%d",
attacker->getName().c_str(), getName().c_str(), amount),
- BY_PLAYER);
+ ChatMsgType::BY_PLAYER);
}
}
if (font && particleEngine)