summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/elogin/parse.c6
-rw-r--r--src/emap/send.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/elogin/parse.c b/src/elogin/parse.c
index 6ca6043..7ecdf13 100644
--- a/src/elogin/parse.c
+++ b/src/elogin/parse.c
@@ -34,7 +34,8 @@ void login_parse_version(int fd)
clientVersion = RFIFOL(fd, 2);
- if (clientVersion < 16)
+ // check for minimal supported version
+ if (clientVersion < 17)
{
lclif->login_error(fd, 5);
return;
@@ -58,7 +59,8 @@ 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 < 16)
+ // check for minimal supported version
+ if (clientVersion < 17)
{
lclif->login_error(fd, 5);
hookStop();
diff --git a/src/emap/send.c b/src/emap/send.c
index d87000b..6897126 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -495,7 +495,7 @@ void send_pc_skin(int fd, int npcId, const char *const skin)
void send_pc_killed(int fd, struct block_list* bl)
{
struct SessionExt *data = session_get(fd);
- if (!data || data->clientVersion < 17)
+ if (!data)
return;
WFIFOHEAD (fd, 6);