summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-03 04:26:22 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-03 04:26:22 +0300
commit2e7cb5a8f05b0a57081360b08906ab23bdba88a8 (patch)
treebfb068f0f5ac7a731e3f170d4f3f9b5f62f4c756
parent0a1a779e51fdd00e5c3bb4173a92cd02f5d1bfd5 (diff)
downloadevol-hercules-s20181205.tar.gz
evol-hercules-s20181205.tar.bz2
evol-hercules-s20181205.tar.xz
evol-hercules-s20181205.zip
Drop support for client version 18.s20181205
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/clif.c32
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;
}