summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/login.c8
-rw-r--r--src/login_sql/login.c6
-rw-r--r--src/map/path.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/login/login.c b/src/login/login.c
index e687ff986..eb4a559ba 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -3016,7 +3016,7 @@ int parse_login(int fd)
case 0x0064: // request client login
case 0x01dd: // request client login (encryption mode)
- case 0x0277: // New login packet (layout is same as 0x64 but different length)
+ case 0x0277: // New login packet (kRO 2006-04-24aSakexe langtype 0)
case 0x02b0: // New login packet (kRO 2007-05-14aSakexe langtype 0)
{
int packet_len = RFIFOREST(fd); // assume no other packet was sent
@@ -3042,8 +3042,8 @@ int parse_login(int fd)
// S 0064 <version>.l <account name>.24B <password>.24B <version2>.B
// S 01dd <version>.l <account name>.24B <md5 binary>.16B <version2>.B
- // S 0277 ??
- // S 02b0 <version>.l <account name>.24B <password>.24B <?>.B <ip address>.16B <?>.13 <version2>.B
+ // S 0277 <version>.l <account name>.24B <password>.24B <junk?>.29B <version2>.B
+ // S 02b0 <version>.l <account name>.24B <password>.24B <junk?>.30B <version2>.B
memset(&account, 0, sizeof(account));
account.version = RFIFOL(fd,2);
@@ -3111,7 +3111,7 @@ int parse_login(int fd)
auth_fifo[auth_fifo_pos].ip = session[fd]->client_addr;
auth_fifo_pos++;
} else { // if no char-server, don't send void list of servers, just disconnect the player with proper message
- ShowStatus("Connection refused: there is no char-server online (account: %s, ip: %s).", account.userid, ip);
+ ShowStatus("Connection refused: there is no char-server online (account: %s, ip: %s).\n", account.userid, ip);
login_log("Connection refused: there is no char-server online (account: %s, ip: %s)." RETCODE,
account.userid, ip);
WFIFOW(fd,0) = 0x81;
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index ecf09ae98..3fe16305e 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1346,7 +1346,7 @@ int parse_login(int fd)
case 0x0064: // request client login
case 0x01dd: // request client login (encryption mode)
- case 0x0277: // New login packet (layout is same as 0x64 but different length)
+ case 0x0277: // New login packet (kRO 2006-04-24aSakexe langtype 0)
case 0x02b0: // New login packet (kRO 2007-05-14aSakexe langtype 0)
{
int packet_len = RFIFOREST(fd);
@@ -1371,8 +1371,8 @@ int parse_login(int fd)
// S 0064 <version>.l <account name>.24B <password>.24B <version2>.B
// S 01dd <version>.l <account name>.24B <md5 binary>.16B <version2>.B
- // S 0277 ??
- // S 02b0 <version>.l <account name>.24B <password>.24B <?>.B <ip address>.16B <?>.13 <version2>.B
+ // S 0277 <version>.l <account name>.24B <password>.24B <junk?>.29B <version2>.B
+ // S 02b0 <version>.l <account name>.24B <password>.24B <junk?>.30B <version2>.B
memset(&account, 0, sizeof(account));
account.version = RFIFOL(fd,2);
diff --git a/src/map/path.c b/src/map/path.c
index d79238b87..471e51e71 100644
--- a/src/map/path.c
+++ b/src/map/path.c
@@ -380,7 +380,7 @@ int path_search_real(struct walkpath_data *wpd,int m,int x0,int y0,int x1,int y1
xs = md->xs-1; // あらかじめ1減算しておく
ys = md->ys-1;
while(1){
- int e=0,f=0,dist,cost,dc[4];
+ int e=0,f=0,dist,cost,dc[4]={0,0,0,0};
if(heap[0]==0)
return -1;