summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-04 21:25:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-04 21:25:57 +0300
commit73a19644de201aa63ed9d1cf9feaa80873a85b4d (patch)
treeed11be06d0a58a433ed91a2db1526fb455d03811 /src/net/eathena/beingrecv.cpp
parent22bdb49dc36281ed99b1f2b5199ef36c9417dcf5 (diff)
downloadmanaplus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.gz
manaplus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.bz2
manaplus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.xz
manaplus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.zip
Show player language badge.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 84bf9ee0c..6c78a8f40 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1744,8 +1744,9 @@ void BeingRecv::processBeingAttrs(Net::MessageIn &msg)
uint16_t mount = 0;
if (haveMount)
mount = msg.readInt16("mount");
+ int language = -1;
if (serverVersion >= 17)
- msg.readInt16("language");
+ language = msg.readInt16("language");
if (dstBeing)
{
if (gmLevel)
@@ -1764,6 +1765,7 @@ void BeingRecv::processBeingAttrs(Net::MessageIn &msg)
{
dstBeing->setHorse(mount);
}
+ dstBeing->setLanguageId(language);
}
}