summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 01:04:05 +0300
commitea0b61e18f36f28806940b00a2cddaef912c3340 (patch)
tree616205f44832d4ced4fc0b50b650eedb0fbf435c /src/net/ea/chathandler.cpp
parent814e88e5ca69bc54837be27429dbf42dd41f7ac6 (diff)
downloadmanaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.gz
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.bz2
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.tar.xz
manaverse-ea0b61e18f36f28806940b00a2cddaef912c3340.zip
Move actor type into separate file.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r--src/net/ea/chathandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 4ae292860..cc43de8cd 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -294,7 +294,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg,
std::string chatMsg = msg.readRawString(chatMsgLength);
- if (being->getType() == Being::PLAYER)
+ if (being->getType() == ActorType::PLAYER)
being->setTalkTime();
const size_t pos = chatMsg.find(" : ", 0);
@@ -309,7 +309,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg,
sender_name = "?";
}
else if (sender_name != being->getName()
- && being->getType() == Being::PLAYER)
+ && being->getType() == ActorType::PLAYER)
{
if (!being->getName().empty())
sender_name = being->getName();