summaryrefslogtreecommitdiff
path: root/src/emap/clif.c
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 /src/emap/clif.c
parent0a1a779e51fdd00e5c3bb4173a92cd02f5d1bfd5 (diff)
downloadplugin-2e7cb5a8f05b0a57081360b08906ab23bdba88a8.tar.gz
plugin-2e7cb5a8f05b0a57081360b08906ab23bdba88a8.tar.bz2
plugin-2e7cb5a8f05b0a57081360b08906ab23bdba88a8.tar.xz
plugin-2e7cb5a8f05b0a57081360b08906ab23bdba88a8.zip
Drop support for client version 18.s20181205
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r--src/emap/clif.c32
1 files changed, 2 insertions, 30 deletions
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;
}