diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-03 22:25:57 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-03 22:25:57 +0000 |
commit | 79b36cc86e1c1c596e1b23874f2c5acf947807bc (patch) | |
tree | 257067623f2e8258e8d444a7ec795899b2e770f1 /src/map/intif.c | |
parent | 0dd21624a69cf05d3c25f4d76500b3d8366a5c62 (diff) | |
download | hercules-79b36cc86e1c1c596e1b23874f2c5acf947807bc.tar.gz hercules-79b36cc86e1c1c596e1b23874f2c5acf947807bc.tar.bz2 hercules-79b36cc86e1c1c596e1b23874f2c5acf947807bc.tar.xz hercules-79b36cc86e1c1c596e1b23874f2c5acf947807bc.zip |
- Added a fix to prevent missing a mail attachment is map servers disconnect from char server.
- Fixed the sprite of Wing of Victory.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11855 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 1cecf5ab0..72766c471 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1645,7 +1645,7 @@ int intif_Mail_send(int account_id, struct mail_message *msg) memcpy(WFIFOP(inter_fd,8), msg, sizeof(struct mail_message)); WFIFOSET(inter_fd,len); - return 0; + return 1; } static void intif_parse_Mail_send(int fd) @@ -1666,16 +1666,9 @@ static void intif_parse_Mail_send(int fd) if( (sd = map_charid2sd(msg.send_id)) ) { if( fail ) - { - pc_additem(sd, &msg.item, msg.item.amount); - if( msg.zeny > 0 ) - { - sd->status.zeny += msg.zeny; - clif_updatestatus(sd, SP_ZENY); - } - } - - clif_Mail_send(sd->fd, fail); + mail_deliveryfail(sd, &msg); + else + clif_Mail_send(sd->fd, false); } if( fail ) |