summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
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: