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/beingrecv.cpp | |
parent | 22bdb49dc36281ed99b1f2b5199ef36c9417dcf5 (diff) | |
download | plus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.gz plus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.bz2 plus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.tar.xz plus-73a19644de201aa63ed9d1cf9feaa80873a85b4d.zip |
Show player language badge.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-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); } } |