diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-28 15:01:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-28 15:01:37 +0300 |
commit | c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e (patch) | |
tree | 56908bbb85f77e595c25530e8ad033f5bd1bb8ed /src/net/eathena/mailrecv.cpp | |
parent | dd1a1121308c52269894073ec3326ebfc8c6aa0b (diff) | |
download | manaplus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.gz manaplus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.bz2 manaplus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.xz manaplus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.zip |
Impliment packet SMSG_MAIL_OPEN_WINDOW 0x0260.
Diffstat (limited to 'src/net/eathena/mailrecv.cpp')
-rw-r--r-- | src/net/eathena/mailrecv.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/net/eathena/mailrecv.cpp b/src/net/eathena/mailrecv.cpp index 67ba37cf2..d920d98c5 100644 --- a/src/net/eathena/mailrecv.cpp +++ b/src/net/eathena/mailrecv.cpp @@ -41,14 +41,24 @@ namespace EAthena void MailRecv::processMailOpen(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; const int flag = msg.readInt32("flag"); switch (flag) { case 0: // open window + if (mailWindow) + { + if (!mailWindow->isWindowVisible()) + mailWindow->setVisible(Visible_true); + mailWindow->requestMoveToTop(); + } break; case 1: // close window + if (mailWindow) + { + if (mailWindow->isWindowVisible()) + mailWindow->setVisible(Visible_false); + } break; default: |