summaryrefslogtreecommitdiff
path: root/src/net/ea/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-08 13:56:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-08 13:56:21 +0300
commitd1b123a4da2c51f82011841000949322e05ecba5 (patch)
tree110dc78af88ce8436f388f907fc6c0b22d14b514 /src/net/ea/npchandler.cpp
parent1a21f967e71660f9c48b7cbd93e315ff40316994 (diff)
downloadmv-d1b123a4da2c51f82011841000949322e05ecba5.tar.gz
mv-d1b123a4da2c51f82011841000949322e05ecba5.tar.bz2
mv-d1b123a4da2c51f82011841000949322e05ecba5.tar.xz
mv-d1b123a4da2c51f82011841000949322e05ecba5.zip
Remove processLangReuqest.
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r--src/net/ea/npchandler.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index 5a2140f7a..ef43acd25 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -109,18 +109,19 @@ void NpcHandler::processNpcIntInput(Net::MessageIn &msg A_UNUSED)
mDialog->integerRequest(0);
}
-void NpcHandler::processNpcStrInput(Net::MessageIn &msg A_UNUSED)
+void NpcHandler::processNpcStrInput(Net::MessageIn &msg)
{
// Request for a string
- if (mDialog)
+ int npcId = getNpc(msg);
+ if (mRequestLang)
+ {
+ mRequestLang = false;
+ stringInput(npcId, getLangSimple());
+ }
+ else if (mDialog)
+ {
mDialog->textRequest("");
-}
-
-void NpcHandler::processLangReuqest(Net::MessageIn &msg A_UNUSED,
- const int npcId)
-{
- mRequestLang = false;
- stringInput(npcId, getLangSimple());
+ }
}
} // namespace Ea