summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 01:35:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 01:35:18 +0300
commitca8f4954af2c0b800358229c831ebcbbb2567acb (patch)
tree48f65e76f0482042446e7ffc086d5f8a753f0189
parent4175e61b1381e553193627b7f5a1b7ee1b0dbb50 (diff)
downloadevol-hercules-ca8f4954af2c0b800358229c831ebcbbb2567acb.tar.gz
evol-hercules-ca8f4954af2c0b800358229c831ebcbbb2567acb.tar.bz2
evol-hercules-ca8f4954af2c0b800358229c831ebcbbb2567acb.tar.xz
evol-hercules-ca8f4954af2c0b800358229c831ebcbbb2567acb.zip
Drop support for client protocol version 12 (Sep 28 2015).
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/clif.c11
-rw-r--r--src/emap/send.c2
3 files changed, 3 insertions, 14 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 562250e..1589c67 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 < 12)
+ if (clientVersion < 14)
{
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 < 12)
+ if (clientVersion < 14)
{
lclif->login_error(fd, 5);
hookStop();
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 568d97a..f3a6173 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -560,17 +560,6 @@ int eclif_send_actual_pre(int *fd,
hookStop();
return 0;
}
- if (packet == 0xb1b)
- {
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion < 14)
- { // not sending new packets to old clients
- hookStop();
- return 0;
- }
- }
if (packet == 0x9dd || packet == 0x9dc || packet == 0x9db || packet == 0x8c8)
{
struct SessionExt *data = session_get(*fd);
diff --git a/src/emap/send.c b/src/emap/send.c
index 9c62014..196eec1 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -432,7 +432,7 @@ void send_setwall(int m, int layer, int x1, int y1, int x2, int y2, int mask, en
void send_setwall_single(int fd, int m, int layer, int x1, int y1, int x2, int y2, int mask)
{
struct SessionExt *data = session_get(fd);
- if (!data || data->clientVersion < 14)
+ if (!data)
return;
WFIFOHEAD (fd, 34);