From a609841386e0eaa2b063a318d698e60fe21f02de Mon Sep 17 00:00:00 2001 From: ultramage Date: Fri, 10 Aug 2007 10:52:30 +0000 Subject: - added proper comments to login packet 0x277 - added a missing \n to one login server warning - silenced one "dc[4] might be uninitialized" warning - fixed an apparently wrong abra_db.txt entry (venom splasher: 40000) - removed .gat from the remaining npcs git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10974 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/login/login.c | 8 ++++---- src/login_sql/login.c | 6 +++--- src/map/path.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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 .l .24B .24B .B // S 01dd .l .24B .16B .B - // S 0277 ?? - // S 02b0 .l .24B .24B .B .16B .13 .B + // S 0277 .l .24B .24B .29B .B + // S 02b0 .l .24B .24B .30B .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 .l .24B .24B .B // S 01dd .l .24B .16B .B - // S 0277 ?? - // S 02b0 .l .24B .24B .B .16B .13 .B + // S 0277 .l .24B .24B .29B .B + // S 02b0 .l .24B .24B .30B .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; -- cgit v1.2.3-70-g09d2