From bb48180858b0c6037ccfd91cde3c55928105efaa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Apr 2017 01:00:51 +0300 Subject: Drop support for client protocol version 8 (May 1 2015). --- src/echar/char.c | 2 +- src/elogin/parse.c | 4 ++-- src/emap/clif.c | 23 ++++------------------- src/emap/send.c | 12 +----------- 4 files changed, 8 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/echar/char.c b/src/echar/char.c index d6a2c40..e469ae1 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -199,7 +199,7 @@ void send_additional_slots(int fd, struct char_session_data* sd) short card2; short card3; - if (!sd || sd->version < 9) + if (!sd) return; struct SqlStmt* stmt = SQL->StmtMalloc(inter->sql_handle); diff --git a/src/elogin/parse.c b/src/elogin/parse.c index 687dc92..262b91a 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 < 8) + if (clientVersion < 9) { 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 < 8) + if (clientVersion < 9) { lclif->login_error(fd, 5); hookStop(); diff --git a/src/emap/clif.c b/src/emap/clif.c index 6adb50b..fefd4ea 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -553,25 +553,10 @@ int eclif_send_actual_pre(int *fd, const int packet = RBUFW (buf, 0); if (packet == 0x1d7) { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion >= 9) - { // not sending old packets to new clients - hookStop(); - return 0; - } - } - if (packet == 0xb17) - { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion < 9) - { // not sending new packets to old clients - hookStop(); - return 0; - } + // not sending old packets to new clients + // probably useless + hookStop(); + return 0; } if (packet == 0x84b) { diff --git a/src/emap/send.c b/src/emap/send.c index ae4e000..9c62014 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -91,17 +91,7 @@ void send_changelook(struct map_session_data* sd, struct map_session_data* sd2, if (!sd) return; //ShowWarning("equip: for type %d = %d\n", type, val); - if (!tdata || tdata->clientVersion < 9) - { - WFIFOHEAD (fd, 11); - WFIFOW (fd, 0) = 0x1d7; - WFIFOL (fd, 2) = id; - WFIFOB (fd, 6) = type; - WFIFOW (fd, 7) = val; - WFIFOW (fd, 9) = val2; - WFIFOSET (fd, 11); - } - else + if (tdata) { WFIFOHEAD (fd, 19); WFIFOW (fd, 0) = 0xb17; -- cgit v1.2.3-70-g09d2