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!
This commit is contained in:
Aleos
2016-04-14 17:01:29 -04:00
parent fdf67ed119
commit a41ba12cf2

View File

@@ -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);