From a41ba12cf2b60bfb3d86f10934bb568da91b2f9a Mon Sep 17 00:00:00 2001 From: Aleos Date: Thu, 14 Apr 2016 17:01:29 -0400 Subject: [PATCH] Fixed character deletion on 2015-11-04 and higher (fixes #1167) * Resolves characters not being removed from the character select screen after the delete time is met and clicking the delete button. Thanks to @joelolopez, @Darkelfen, and @Lemongrass3110! --- src/char/char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/char/char.c b/src/char/char.c index 214945b576..29d42f0f7e 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1804,7 +1804,7 @@ int char_mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) offset += MAP_NAME_LENGTH_EXT; #endif #if PACKETVER >= 20100803 -#if PACKETVER > 20130000 && PACKETVER < 20141016 || PACKETVER >= 20150826 && PACKETVER < 20151001 +#if (PACKETVER > 20130000 && PACKETVER < 20141016) || (PACKETVER >= 20150826 && PACKETVER < 20151001) || PACKETVER >= 20151104 WBUFL(buf,124) = (p->delete_date?TOL(p->delete_date-time(NULL)):0); #else WBUFL(buf,124) = TOL(p->delete_date);