diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-20 02:18:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-20 02:24:18 +0300 |
commit | 433e89ad46c21b95e694c9f65d01460152c0572f (patch) | |
tree | 85c8894583608d739f410b7379f6ea2f08ae1c11 /src/emap | |
parent | 21bf66af4b73583909d45e07dfc189017d70a542 (diff) | |
download | evol-hercules-433e89ad46c21b95e694c9f65d01460152c0572f.tar.gz evol-hercules-433e89ad46c21b95e694c9f65d01460152c0572f.tar.bz2 evol-hercules-433e89ad46c21b95e694c9f65d01460152c0572f.tar.xz evol-hercules-433e89ad46c21b95e694c9f65d01460152c0572f.zip |
Prevent send packet 0x2dd and remove block for it from clif_send.
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/clif.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c index eed6c49..cf1e0ce 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -526,8 +526,7 @@ int eclif_send_actual_pre(int *fd, if (*len >= 2) { const int packet = RBUFW (buf, 0); - if (packet == 0x1d7 || - packet == 0x2dd) + if (packet == 0x1d7) { // not sending old packets to new clients // probably useless @@ -970,6 +969,7 @@ void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr) WBUFW(buf, 30) = sd->bg_id; WBUFW(buf, 32) = data->teamId; clif->send(buf, 34, &sd->bl, AREA); + hookStop(); } void eclif_sendbgemblem_single_pre(int *fdPtr, @@ -980,7 +980,10 @@ void eclif_sendbgemblem_single_pre(int *fdPtr, struct SessionExt *data = session_get_bysd(sd); struct SessionExt *ddata = session_get_bysd(sd); if (!sd || !data || !ddata) + { + hookStop(); return; + } WFIFOHEAD(fd, 34); WFIFOW(fd, 0) = 0xb1a; |