diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:00:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:00:51 +0300 |
commit | bb48180858b0c6037ccfd91cde3c55928105efaa (patch) | |
tree | 551d6d051597feb6d4909ae71891645b8c2b676e | |
parent | 704544067426f3bd3f2ad9a583a260c7a5d6e85a (diff) | |
download | evol-hercules-bb48180858b0c6037ccfd91cde3c55928105efaa.tar.gz evol-hercules-bb48180858b0c6037ccfd91cde3c55928105efaa.tar.bz2 evol-hercules-bb48180858b0c6037ccfd91cde3c55928105efaa.tar.xz evol-hercules-bb48180858b0c6037ccfd91cde3c55928105efaa.zip |
Drop support for client protocol version 8 (May 1 2015).
-rw-r--r-- | src/echar/char.c | 2 | ||||
-rw-r--r-- | src/elogin/parse.c | 4 | ||||
-rw-r--r-- | src/emap/clif.c | 23 | ||||
-rw-r--r-- | src/emap/send.c | 12 |
4 files changed, 8 insertions, 33 deletions
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; |