summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 01:32:24 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 01:32:24 +0300
commit4175e61b1381e553193627b7f5a1b7ee1b0dbb50 (patch)
tree66acbb4bf0502688e0d381efebf9ce3119493823 /src/emap
parent4a5a1205ac1c570724574b1aed3d3902f1bdbc27 (diff)
downloadevol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.gz
evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.bz2
evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.tar.xz
evol-hercules-4175e61b1381e553193627b7f5a1b7ee1b0dbb50.zip
Drop support for client protocol version 11 (Aug 21 2015).
Diffstat (limited to 'src/emap')
-rw-r--r--src/emap/clif.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 36a3dc7..568d97a 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -552,35 +552,14 @@ int eclif_send_actual_pre(int *fd,
{
const int packet = RBUFW (buf, 0);
if (packet == 0x1d7 ||
- packet == 0x84b)
+ packet == 0x84b ||
+ packet == 0x2dd)
{
// not sending old packets to new clients
// probably useless
hookStop();
return 0;
}
- if (packet == 0x2dd)
- {
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion >= 12)
- { // not sending old packets to new clients
- hookStop();
- return 0;
- }
- }
- if (packet == 0xb1a)
- {
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion < 12)
- { // not sending new packets to old clients
- hookStop();
- return 0;
- }
- }
if (packet == 0xb1b)
{
struct SessionExt *data = session_get(*fd);
@@ -1367,7 +1346,7 @@ void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr)
unsigned char buf[34];
struct map_session_data *sd = *sdPtr;
struct SessionExt *data = session_get_bysd(sd);
- if (!sd || !data || data->clientVersion < 12)
+ if (!sd || !data)
return;
WBUFW(buf, 0) = 0xb1a;
@@ -1385,7 +1364,7 @@ void eclif_sendbgemblem_single_pre(int *fdPtr,
struct map_session_data *sd = *sdPtr;
struct SessionExt *data = session_get_bysd(sd);
struct SessionExt *ddata = session_get_bysd(sd);
- if (!sd || !data || !ddata || ddata->clientVersion < 12)
+ if (!sd || !data || !ddata)
return;
WFIFOHEAD(fd, 34);