From 8c5e0386874450ef667adb5155f3b3340d0299f1 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 23 Oct 2013 04:47:49 -0200 Subject: Fixed char deletion on latest clients freezing Newer clients freeze unless the char select list is resent, Haru and I confirmed official servers re-send the list upon deletion (we were not able to identify when this started though, its currently set to 2013 onwards -- if you have info on this please contact us so we can fix the range :D). Special Thanks to LuLu, Haruna. Signed-off-by: shennetsind --- src/char/char.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/char/char.c b/src/char/char.c index 574e4f66b..0b35c0143 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3585,6 +3585,14 @@ void char_delete2_ack(int fd, int char_id, uint32 result, time_t delete_date) /// Any (0x718): An unknown error has occurred. void char_delete2_accept_ack(int fd, int char_id, uint32 result) {// HC: <082a>.W .L .L + +#if PACKETVER >= 20130000 /* not sure the exact date -- must refresh or client gets stuck */ + if( result == 1 ) { + struct char_session_data* sd = (struct char_session_data*)session[fd]->session_data; + mmo_char_send099d(fd, sd); + } +#endif + WFIFOHEAD(fd,10); WFIFOW(fd,0) = 0x82a; WFIFOL(fd,2) = char_id; -- cgit v1.2.3-60-g2f50