summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-28 15:01:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-28 15:01:37 +0300
commitc5cbb25643bd8abbb8a15087bb0dd98d9be5f66e (patch)
tree56908bbb85f77e595c25530e8ad033f5bd1bb8ed /src/net
parentdd1a1121308c52269894073ec3326ebfc8c6aa0b (diff)
downloadplus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.gz
plus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.bz2
plus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.tar.xz
plus-c5cbb25643bd8abbb8a15087bb0dd98d9be5f66e.zip
Impliment packet SMSG_MAIL_OPEN_WINDOW 0x0260.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/mailrecv.cpp12
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: