summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-02 19:07:14 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-02 19:07:14 +0000
commitc90e9f42da90183a0be9c29a11beec7db606d44f (patch)
tree0bfb8fd5236a12e24006dfb511eb7448e27bc8b4 /src/map
parent767b08018e035e1d04e7d83ea923a146626761f0 (diff)
downloadhercules-c90e9f42da90183a0be9c29a11beec7db606d44f.tar.gz
hercules-c90e9f42da90183a0be9c29a11beec7db606d44f.tar.bz2
hercules-c90e9f42da90183a0be9c29a11beec7db606d44f.tar.xz
hercules-c90e9f42da90183a0be9c29a11beec7db606d44f.zip
- New optimizations for mail system and adjust to use it on Auctions.
- Added a Sql patch to clear all deleted mails. (There is no need to keep that data) - Added more code for Auctions. Not implemented but just for study. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12278 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/intif.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index e04710218..b15987018 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1591,11 +1591,14 @@ int intif_parse_Mail_return(int fd)
{
int i;
ARR_FIND(0, MAIL_MAX_INBOX, i, sd->mail.inbox.msg[i].id == mail_id);
- if (i < MAIL_MAX_INBOX)
+ if( i < MAIL_MAX_INBOX )
{
memset(&sd->mail.inbox.msg[i], 0, sizeof(struct mail_message));
sd->mail.inbox.amount--;
}
+
+ if( sd->mail.inbox.full )
+ intif_Mail_requestinbox(sd->status.char_id, 1); // Free space is available for new mails
}
clif_Mail_return(sd->fd, mail_id, fail);