diff options
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/clif.c | 47 | ||||
-rw-r--r-- | src/emap/send.c | 2 |
2 files changed, 5 insertions, 44 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c index a5ff9cb..b2131bc 100644 --- a/src/emap/clif.c +++ b/src/emap/clif.c @@ -534,28 +534,12 @@ int eclif_send_actual_pre(int *fd, hookStop(); return 0; } - if (packet == 0xb1e + evolPacketOffset) - { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion < 18) - { // not sending new packets to old clients -// ShowWarning("skip packet %d\n", packet); - hookStop(); - return 0; - } - } if (packet == 0x7fb) { - struct SessionExt *data = session_get(*fd); - if (!data) - return 0; - if (data->clientVersion >= 18) - { // not sending old packets to new clients - hookStop(); - return 0; - } + // not sending old packets to new clients + // probably useless? + hookStop(); + return 0; } if (packet == 0x9cb) { @@ -1020,11 +1004,6 @@ void eclif_skillinfoblock_pre(struct map_session_data **sdPtr) { struct map_session_data *sd = *sdPtr; nullpo_retv(sd); - struct SessionExt *data = session_get_bysd(sd); - if (!data) - return; - if (data->clientVersion < 18) - return; int fd = sd->fd; if (!fd) @@ -1088,13 +1067,6 @@ void eclif_addskill_pre(struct map_session_data **sdPtr, struct map_session_data *sd = *sdPtr; nullpo_retv(sd); int id = *idPtr; - - struct SessionExt *data = session_get_bysd(sd); - if (!data) - return; - if (data->clientVersion < 18) - return; - int fd = sd->fd; if (!fd) { @@ -1147,12 +1119,6 @@ void eclif_skillinfo_pre(struct map_session_data **sdPtr, struct map_session_data *sd = *sdPtr; nullpo_retv(sd); - struct SessionExt *data = session_get_bysd(sd); - if (!data) - return; - if (data->clientVersion < 18) - return; - int skill_id = *skill_idPtr; int idx = skill->get_index(skill_id); Assert_retv(idx >= 0 && idx < MAX_SKILL_DB); @@ -1216,11 +1182,6 @@ void eclif_parse_WalkToXY(int fd, if (unit->walktoxy(&sd->bl, x, y, 4) && sd->ud.state.change_walk_target == 1) { - struct SessionExt *data = session_get_bysd(sd); - if (!data) - return; - if (data->clientVersion < 18) - return; send_walk_fail(sd->fd, x, y); } } diff --git a/src/emap/send.c b/src/emap/send.c index 6d1e05e..dd9d7ac 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -527,7 +527,7 @@ void send_homun_exp(struct homun_data *hd, const int fd = hd->master->fd; struct SessionExt *data = session_get(fd); - if (!data || data->clientVersion < 18) + if (!data) return; WFIFOHEAD(fd, 10); |