diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-04 21:25:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-04 21:25:57 +0300 |
commit | 73a19644de201aa63ed9d1cf9feaa80873a85b4d (patch) | |
tree | ed11be06d0a58a433ed91a2db1526fb455d03811 /src/net/eathena | |
parent | 22bdb49dc36281ed99b1f2b5199ef36c9417dcf5 (diff) | |
download | mv-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.gz mv-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.bz2 mv-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.xz mv-73a19644de201aa63ed9d1cf9feaa80873a85b4d.zip |
Show player language badge.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 4 |
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); } } |