From 2e7cb5a8f05b0a57081360b08906ab23bdba88a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Nov 2018 04:26:22 +0300 Subject: Drop support for client version 18. --- src/elogin/parse.c | 4 ++-- src/emap/clif.c | 32 ++------------------------------ 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/src/elogin/parse.c b/src/elogin/parse.c index a03905a..b6e4b5d 100644 --- a/src/elogin/parse.c +++ b/src/elogin/parse.c @@ -35,7 +35,7 @@ void login_parse_version(int fd) clientVersion = RFIFOL(fd, 2); // check for minimal supported version - if (clientVersion < 18) + if (clientVersion < 19) { lclif->login_error(fd, 5); return; @@ -60,7 +60,7 @@ bool elogin_client_login_pre(int *fdPtr, safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH); int len = (int)safestrnlen(username, NAME_LENGTH); // check for minimal supported version - if (clientVersion < 18) + if (clientVersion < 19) { lclif->login_error(fd, 5); hookStop(); diff --git a/src/emap/clif.c b/src/emap/clif.c index dea198e..4892549 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -754,31 +754,14 @@ void eclif_sendlook_pre(struct block_list **blPtr, eclif_handle_invisible_map(bl, *target); } -bool eclif_send_pre(const void **bufPtr, +bool eclif_send_pre(const void **bufPtr __attribute__ ((unused)), int *len __attribute__ ((unused)), struct block_list **blPtr, enum send_target *type) { struct block_list *bl = *blPtr; - const void *buf = *bufPtr; if (*type == SELF) { - if (*len >= 2) - { - const int packet = RBUFW (buf, 0); - if (packet == 0x9cb) - { - struct map_session_data *sd = BL_CAST(BL_PC, bl); - struct SessionExt *data = session_get_bysd(sd); - if (!data) - return true; - if (data->clientVersion < 19) - { // not sending new packet to old clients - hookStop(); - return true; - } - } - } return true; } eclif_handle_invisible_map(bl, *type); @@ -797,7 +780,7 @@ void eclif_set_unit_idle_pre(struct block_list **blPtr, eclif_handle_invisible_map(bl, *target); } -int eclif_send_actual_pre(int *fd, +int eclif_send_actual_pre(int *fd __attribute__ ((unused)), void **bufPtr, int *len) { @@ -819,17 +802,6 @@ int eclif_send_actual_pre(int *fd, hookStop(); return 0; } - if (packet == 0x9cb) - { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion < 19) - { // not sending new packets to old clients - hookStop(); - return 0; - } - } } return 0; } -- cgit v1.2.3-70-g09d2