diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/mail.c | 6 | ||||
-rw-r--r-- | src/map/mail.h | 2 |
3 files changed, 1 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index cbcada2b1..3f6cf94f6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11714,7 +11714,7 @@ void clif_parse_Mail_send(int fd, struct map_session_data *sd) else memset(msg.body, 0x00, MAIL_BODY_LENGTH); - msg.timestamp = (int)mail_calctimes(); + msg.timestamp = calc_times(); if( !intif_Mail_send(sd->status.account_id, &msg) ) mail_deliveryfail(sd, &msg); diff --git a/src/map/mail.c b/src/map/mail.c index d6fc875a3..733fce646 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -16,12 +16,6 @@ #include <time.h> #include <string.h> -time_t mail_calctimes(void) -{ - time_t temp = time(NULL); - return mktime(localtime(&temp)); -} - void mail_clear(struct map_session_data *sd) { sd->mail.nameid = 0; diff --git a/src/map/mail.h b/src/map/mail.h index 9a867daa5..cab582e55 100644 --- a/src/map/mail.h +++ b/src/map/mail.h @@ -6,8 +6,6 @@ #include "../common/mmo.h" -time_t mail_calctimes(void); - void mail_clear(struct map_session_data *sd); int mail_removeitem(struct map_session_data *sd, short flag); int mail_removezeny(struct map_session_data *sd, short flag); |