summaryrefslogtreecommitdiff
path: root/src/net/ea/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 23:58:39 +0300
commit0a39e956218ca15bf78803f89141c7c9dfcec0d9 (patch)
treeadfc0fcd42792ddad6b3cb8843d6fe0c22170580 /src/net/ea/chathandler.cpp
parent69022cd939e572feadaadf1041ae7dadad782ed6 (diff)
downloadmv-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.gz
mv-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.bz2
mv-0a39e956218ca15bf78803f89141c7c9dfcec0d9.tar.xz
mv-0a39e956218ca15bf78803f89141c7c9dfcec0d9.zip
Change format in ActorType enum.
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 4bec39513..62c6b17f8 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -295,7 +295,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) const
std::string chatMsg = msg.readRawString(chatMsgLength, "message");
- if (being->getType() == ActorType::PLAYER)
+ if (being->getType() == ActorType::Player)
being->setTalkTime();
const size_t pos = chatMsg.find(" : ", 0);
@@ -310,7 +310,7 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg) const
sender_name = "?";
}
else if (sender_name != being->getName()
- && being->getType() == ActorType::PLAYER)
+ && being->getType() == ActorType::Player)
{
if (!being->getName().empty())
sender_name = being->getName();