diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:32:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-20 01:32:24 +0300 |
commit | 4175e61b1381e553193627b7f5a1b7ee1b0dbb50 (patch) | |
tree | 66acbb4bf0502688e0d381efebf9ce3119493823 /src/emap/clif.c | |
parent | 4a5a1205ac1c570724574b1aed3d3902f1bdbc27 (diff) | |
download | evol-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/clif.c')
-rw-r--r-- | src/emap/clif.c | 29 |
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); |