Skip to content

Commit

Permalink
Fixed Char Deletion Bug on 2013++ Clients
Browse files Browse the repository at this point in the history
Thanks to LuLu who pointed us in the right direction, http://hercules.ws/board/topic/2453-help-open-pull-request-fixing-char-deletion-time-in-2013-client/

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed Oct 11, 2013
1 parent fad3040 commit ca15680
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/char/char.c
Expand Up @@ -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) = p->delete_date;
offset += 4;
#endif
#if PACKETVER >= 20110111
Expand Down Expand Up @@ -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) = delete_date - time(NULL);
#else
WFIFOL(fd,10) = delete_date;

#endif
WFIFOSET(fd,14);
}

Expand Down

0 comments on commit ca15680

Please sign in to comment.