diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 00:46:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 00:46:45 +0300 |
commit | 16da077d4094fd6941ae4de60f1b6f3e133f1b5a (patch) | |
tree | 8a3b46ef60ad049a21fc21dedbd20db5597dc614 /src/net/eathena/charserverhandler.cpp | |
parent | 87faf131575091160e9776c511e24b65e8b6b2e9 (diff) | |
download | manaplus-16da077d4094fd6941ae4de60f1b6f3e133f1b5a.tar.gz manaplus-16da077d4094fd6941ae4de60f1b6f3e133f1b5a.tar.bz2 manaplus-16da077d4094fd6941ae4de60f1b6f3e133f1b5a.tar.xz manaplus-16da077d4094fd6941ae4de60f1b6f3e133f1b5a.zip |
Update visible character name and character rename.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index e595c9ed4..021d12811 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -31,6 +31,7 @@ #include "gui/dialogtype.h" #include "gui/windows/charcreatedialog.h" +#include "gui/windows/charselectdialog.h" #include "gui/windows/okdialog.h" #include "net/character.h" @@ -63,6 +64,7 @@ extern ServerInfo mapServer; CharServerHandler::CharServerHandler() : MessageHandler(), Ea::CharServerHandler(), + mNewName(), mPinSeed(0), mPinAccountId(0), mRenameId(0), @@ -491,6 +493,7 @@ void CharServerHandler::renameCharacter(const int id, { createOutPacket(CMSG_CHAR_CHECK_RENAME); mRenameId = id; + mNewName = newName; outMsg.writeInt32(id, "char id"); outMsg.writeString(newName, 24, "name"); } @@ -501,14 +504,6 @@ void CharServerHandler::processCharCheckRename(Net::MessageIn &msg) { createOutPacket(CMSG_CHAR_RENAME); outMsg.writeInt32(mRenameId, "char id"); -/* - // TRANSLATORS: info message - new OkDialog(_("Info"), _("Character renamed."), - // TRANSLATORS: ok dialog button - _("OK"), - DialogType::OK, - true, true, nullptr, 260); -*/ } else { @@ -526,6 +521,7 @@ void CharServerHandler::processCharRename(Net::MessageIn &msg) const int flag = msg.readInt16("flag"); if (!flag) { + mCharSelectDialog->setName(mRenameId, mNewName); // TRANSLATORS: info message new OkDialog(_("Info"), _("Character renamed."), // TRANSLATORS: ok dialog button |