From 73a19644de201aa63ed9d1cf9feaa80873a85b4d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Apr 2017 21:25:57 +0300 Subject: Show player language badge. --- src/net/eathena/beingrecv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/beingrecv.cpp') 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); } } -- cgit v1.2.3-70-g09d2