summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.cpp8
-rw-r--r--src/login/login.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/char/char.cpp b/src/char/char.cpp
index 80c730e..772adac 100644
--- a/src/char/char.cpp
+++ b/src/char/char.cpp
@@ -1337,7 +1337,7 @@ void parse_tologin(int fd)
// refuse connection: too much online players
// PRINTF("count_users(): %d < max_connect_use (%d) -> fail...\n", count_users(), max_connect_user);
WFIFOW(i, 0) = 0x6c;
- WFIFOW(i, 2) = 0;
+ WFIFOB(i, 2) = 0;
WFIFOSET(i, 3);
}
break;
@@ -2351,7 +2351,7 @@ void handle_x0066(int fd, struct char_session_data *sd, uint8_t rfifob_2, uint8_
if (j == MAX_MAP_SERVERS)
{
WFIFOW(fd, 0) = 0x81;
- WFIFOL(fd, 2) = 1; // 01 = Server closed
+ WFIFOB(fd, 2) = 1; // 01 = Server closed
WFIFOSET(fd, 3);
return;
}
@@ -2496,7 +2496,7 @@ void parse_char(int fd)
{
// refuse connection (over populated)
WFIFOW(fd, 0) = 0x6c;
- WFIFOW(fd, 2) = 0;
+ WFIFOB(fd, 2) = 0;
WFIFOSET(fd, 3);
}
break;
@@ -2519,7 +2519,7 @@ void parse_char(int fd)
else
{ // if no login-server, we must refuse connection
WFIFOW(fd, 0) = 0x6c;
- WFIFOW(fd, 2) = 0;
+ WFIFOB(fd, 2) = 0;
WFIFOSET(fd, 3);
}
}
diff --git a/src/login/login.cpp b/src/login/login.cpp
index 356a607..e07b7cb 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -3093,7 +3093,7 @@ void parse_login(int fd)
min_level_to_connect, account.userid,
gm_level, ip);
WFIFOW(fd, 0) = 0x81;
- WFIFOL(fd, 2) = 1; // 01 = Server closed
+ WFIFOB(fd, 2) = 1; // 01 = Server closed
WFIFOSET(fd, 3);
}
else
@@ -3189,7 +3189,7 @@ void parse_login(int fd)
LOGIN_LOG("Connection refused: there is no char-server online (account: %s, ip: %s).\n",
account.userid, ip);
WFIFOW(fd, 0) = 0x81;
- WFIFOL(fd, 2) = 1; // 01 = Server closed
+ WFIFOB(fd, 2) = 1; // 01 = Server closed
WFIFOSET(fd, 3);
}
}