summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 13:50:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-08 13:50:18 +0300
commit1a21f967e71660f9c48b7cbd93e315ff40316994 (patch)
tree97b4cb2764ab7c0690c73241e1f833df1b0a991f /src/net/ea
parentf6be620b3f688a4ef4bb3983d9d5fe8afef7f013 (diff)
downloadplus-1a21f967e71660f9c48b7cbd93e315ff40316994.tar.gz
plus-1a21f967e71660f9c48b7cbd93e315ff40316994.tar.bz2
plus-1a21f967e71660f9c48b7cbd93e315ff40316994.tar.xz
plus-1a21f967e71660f9c48b7cbd93e315ff40316994.zip
Move processLangReuqest from tmwa namespace into ea.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/npchandler.cpp9
-rw-r--r--src/net/ea/npchandler.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index 05f12c2bb..5a2140f7a 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -26,6 +26,8 @@
#include "net/messagein.h"
+#include "utils/langs.h"
+
#include "debug.h"
namespace Ea
@@ -114,4 +116,11 @@ void NpcHandler::processNpcStrInput(Net::MessageIn &msg A_UNUSED)
mDialog->textRequest("");
}
+void NpcHandler::processLangReuqest(Net::MessageIn &msg A_UNUSED,
+ const int npcId)
+{
+ mRequestLang = false;
+ stringInput(npcId, getLangSimple());
+}
+
} // namespace Ea
diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h
index 81e92d84a..11ffacb59 100644
--- a/src/net/ea/npchandler.h
+++ b/src/net/ea/npchandler.h
@@ -63,6 +63,8 @@ class NpcHandler notfinal : public Net::NpcHandler
void processNpcStrInput(Net::MessageIn &msg);
+ void processLangReuqest(Net::MessageIn &msg, const int npcId);
+
protected:
NpcHandler();