summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirpojee@rocketmail.com>2013-10-12 10:49:23 +0530
committerDastgir Pojee <dastgirpojee@rocketmail.com>2013-10-12 10:49:23 +0530
commit97979fe1e577aebe77e978c248a08b33b2c0c1a2 (patch)
treea1cc274fea52f11783e73039fab5eda3bae98b36 /src/char/char.c
parentc87513dacd51726390fc28b4d96f385f89c872ac (diff)
parent0ca3552670428c4ebe59102a2c3fba2d775006b4 (diff)
downloadhercules-97979fe1e577aebe77e978c248a08b33b2c0c1a2.tar.gz
hercules-97979fe1e577aebe77e978c248a08b33b2c0c1a2.tar.bz2
hercules-97979fe1e577aebe77e978c248a08b33b2c0c1a2.tar.xz
hercules-97979fe1e577aebe77e978c248a08b33b2c0c1a2.zip
Merge branch 'master' of https://github.com/dastgirpojee/Hercules into SkidConst
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 5a51130de..574e4f66b 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1897,7 +1897,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) {
offset += MAP_NAME_LENGTH_EXT;
#endif
#if PACKETVER >= 20100803
- WBUFL(buf,124) = TOL(p->delete_date);
+ WBUFL(buf,124) = (int)p->delete_date;
offset += 4;
#endif
#if PACKETVER >= 20110111
@@ -3565,7 +3565,12 @@ void char_delete2_ack(int fd, int char_id, uint32 result, time_t delete_date)
WFIFOW(fd,0) = 0x828;
WFIFOL(fd,2) = char_id;
WFIFOL(fd,6) = result;
- WFIFOL(fd,10) = TOL(delete_date);
+#if PACKETVER >= 20130000
+ WFIFOL(fd,10) = (int)(delete_date - time(NULL));
+#else
+ WFIFOL(fd,10) = (int)delete_date;
+
+#endif
WFIFOSET(fd,14);
}