diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:32:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:32:24 +0300 |
commit | 4175e61b1381e553193627b7f5a1b7ee1b0dbb50 (patch) | |
tree | 66acbb4bf0502688e0d381efebf9ce3119493823 | |
parent | 4a5a1205ac1c570724574b1aed3d3902f1bdbc27 (diff) | |
download | evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.gz evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.bz2 evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.xz evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.zip |
Drop support for client protocol version 11 (Aug 21 2015).
-rw-r--r-- | src/elogin/parse.c | 4 | ||||
-rw-r--r-- | src/emap/clif.c | 29 |
2 files changed, 6 insertions, 27 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 0467134..562250e 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -34,7 +34,7 @@ void login_parse_version(int fd) clientVersion = RFIFOL(fd, 2); - if (clientVersion < 11) + if (clientVersion < 12) { lclif->login_error(fd, 5); return; @@ -58,7 +58,7 @@ bool elogin_client_login_pre(int *fdPtr, char username[NAME_LENGTH]; safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH); int len = (int)safestrnlen(username, NAME_LENGTH); - if (clientVersion < 11) + if (clientVersion < 12) { lclif->login_error(fd, 5); hookStop(); diff --git a/src/emap/clif.c b/src/emap/clif.c index 36a3dc7..568d97a 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -552,35 +552,14 @@ int eclif_send_actual_pre(int *fd, { const int packet = RBUFW (buf, 0); if (packet == 0x1d7 || - packet == 0x84b) + packet == 0x84b || + packet == 0x2dd) { // not sending old packets to new clients // probably useless hookStop(); return 0; } - if (packet == 0x2dd) - { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion >= 12) - { // not sending old packets to new clients - hookStop(); - return 0; - } - } - if (packet == 0xb1a) - { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion < 12) - { // not sending new packets to old clients - hookStop(); - return 0; - } - } if (packet == 0xb1b) { struct SessionExt *data = session_get(*fd); @@ -1367,7 +1346,7 @@ void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr) unsigned char buf[34]; struct map_session_data *sd = *sdPtr; struct SessionExt *data = session_get_bysd(sd); - if (!sd || !data || data->clientVersion < 12) + if (!sd || !data) return; WBUFW(buf, 0) = 0xb1a; @@ -1385,7 +1364,7 @@ void eclif_sendbgemblem_single_pre(int *fdPtr, struct map_session_data *sd = *sdPtr; struct SessionExt *data = session_get_bysd(sd); struct SessionExt *ddata = session_get_bysd(sd); - if (!sd || !data || !ddata || ddata->clientVersion < 12) + if (!sd || !data || !ddata) return; WFIFOHEAD(fd, 34); |