summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/clif.c47
-rw-r--r--src/emap/send.c2
3 files changed, 7 insertions, 46 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 7ecdf13..a03905a 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -35,7 +35,7 @@ void login_parse_version(int fd)
clientVersion = RFIFOL(fd, 2);
// check for minimal supported version
- if (clientVersion < 17)
+ if (clientVersion < 18)
{
lclif->login_error(fd, 5);
return;
@@ -60,7 +60,7 @@ bool elogin_client_login_pre(int *fdPtr,
safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH);
int len = (int)safestrnlen(username, NAME_LENGTH);
// check for minimal supported version
- if (clientVersion < 17)
+ if (clientVersion < 18)
{
lclif->login_error(fd, 5);
hookStop();
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);