summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-10-05 18:55:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-10-16 16:26:01 +0300
commitdd9eae9be585da9d7e8e5e39f6831f4ff641ad3f (patch)
tree3a9f4d85ebe1ceb54a89561b97f5270a54e5b5f7 /src/char
parentfd5292f70192c61956556b3c53c68485938a022e (diff)
downloadhercules-dd9eae9be585da9d7e8e5e39f6831f4ff641ad3f.tar.gz
hercules-dd9eae9be585da9d7e8e5e39f6831f4ff641ad3f.tar.bz2
hercules-dd9eae9be585da9d7e8e5e39f6831f4ff641ad3f.tar.xz
hercules-dd9eae9be585da9d7e8e5e39f6831f4ff641ad3f.zip
Dont send packets for known unsupported client versions.
Fixed packets between 20111005 to 20141022. As reference was used client packet logs from https://gitlab.com/4144/servergreps/tree/master/peek_all/packets
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 952c3d781..945111640 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1945,11 +1945,15 @@ int char_mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) {
}
/* Made Possible by Yommy~! <3 */
-void char_mmo_char_send099d(int fd, struct char_session_data *sd) {
+void char_mmo_char_send099d(int fd, struct char_session_data *sd)
+{
+// support added for client between 20121010 and 20130320
+#if PACKETVER > 20120418
WFIFOHEAD(fd,4 + (MAX_CHARS*MAX_CHAR_BUF));
WFIFOW(fd,0) = 0x99d;
WFIFOW(fd,2) = chr->mmo_chars_fromsql(sd, WFIFOP(fd,4)) + 4;
WFIFOSET(fd,WFIFOW(fd,2));
+#endif
}
/* Sends character ban list */