summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/elogin/parse.c4
-rw-r--r--src/emap/clif.c12
-rw-r--r--src/emap/send.c2
3 files changed, 3 insertions, 15 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 6a1052d..1db2dbd 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -34,7 +34,7 @@ void login_parse_version(int fd)
clientVersion = RFIFOL(fd, 2);
- if (clientVersion < 4)
+ if (clientVersion < 5)
{
lclif->login_error(fd, 5);
return;
@@ -58,7 +58,7 @@ bool elogin_client_login_pre(int *fdPtr,
char username[NAME_LENGTH];
safestrncpy(username, RFIFOP(fd, 6), NAME_LENGTH);
int len = (int)safestrnlen(username, NAME_LENGTH);
- if (clientVersion < 4)
+ if (clientVersion < 5)
{
lclif->login_error(fd, 5);
hookStop();
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 7d75a85..6adb50b 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -551,18 +551,6 @@ int eclif_send_actual_pre(int *fd,
if (*len >= 2)
{
const int packet = RBUFW (buf, 0);
- if (packet == 0xb0b)
- {
- struct SessionExt *data = session_get(*fd);
- if (!data)
- return 0;
- if (data->clientVersion < 5)
- { // not sending new packets to old clients
-// ShowWarning("skip packet %d\n", packet);
- hookStop();
- return 0;
- }
- }
if (packet == 0x1d7)
{
struct SessionExt *data = session_get(*fd);
diff --git a/src/emap/send.c b/src/emap/send.c
index c3b9478..ea02817 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -226,7 +226,7 @@ void send_npc_info(struct block_list* bl1,
if (tsd)
{
struct SessionExt *tdata = session_get_bysd(tsd);
- if (!tdata || tdata->clientVersion < 5)
+ if (!tdata)
return;
}