summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-03-02 13:52:33 -0800
committerBen Longbons <b.r.longbons@gmail.com>2011-03-02 14:06:46 -0800
commita1a2711abfc594f2be1da51df95ddcd7071ddebd (patch)
tree9128237fc4794b917394a1c39221d08cc78c1b54 /src/map/chrif.c
parent877018d1296c984afe72b79f076265d6d27c3a7c (diff)
downloadtmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.gz
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.bz2
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.xz
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.zip
Recode from SHIFT-JIS to unicode, then undo the conversion of backslashs and tildes.
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index fd2398b..4bcfa45 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -44,7 +44,7 @@ static int char_port = 6121;
static char userid[24], passwd[24];
static int chrif_state;
-// Ý’èƒtƒ@ƒCƒ‹“Ç‚Ýž‚ÝŠÖŒW
+// 設定ファイル読ã¿è¾¼ã¿é–¢ä¿‚
/*==========================================
*
*------------------------------------------
@@ -147,7 +147,7 @@ int chrif_connect (int fd)
}
/*==========================================
- * ƒ}ƒbƒv‘—M
+ * マップé€ä¿¡
*------------------------------------------
*/
int chrif_sendmap (int fd)
@@ -167,7 +167,7 @@ int chrif_sendmap (int fd)
}
/*==========================================
- * ƒ}ƒbƒvŽóM
+ * マップå—ä¿¡
*------------------------------------------
*/
int chrif_recvmap (int fd)
@@ -175,7 +175,7 @@ int chrif_recvmap (int fd)
int i, j, ip, port;
unsigned char *p = (unsigned char *) &ip;
- if (chrif_state < 2) // ‚Ü‚¾€”õ’†
+ if (chrif_state < 2) // ã¾ã æº–備中
return -1;
ip = RFIFOL (fd, 4);
@@ -194,7 +194,7 @@ int chrif_recvmap (int fd)
}
/*==========================================
- * ƒ}ƒbƒvŽIŠÔˆÚ“®‚Ì‚½‚߂̃f[ƒ^€”õ—v‹
+ * マップ鯖間移動ã®ãŸã‚ã®ãƒ‡ãƒ¼ã‚¿æº–å‚™è¦æ±‚
*------------------------------------------
*/
int chrif_changemapserver (struct map_session_data *sd, char *name, int x,
@@ -230,7 +230,7 @@ int chrif_changemapserver (struct map_session_data *sd, char *name, int x,
}
/*==========================================
- * ƒ}ƒbƒvŽIŠÔˆÚ“®ack
+ * マップ鯖間移動ack
*------------------------------------------
*/
int chrif_changemapserverack (int fd)
@@ -361,7 +361,7 @@ int chrif_charselectreq (struct map_session_data *sd)
}
/*==========================================
- * ƒLƒƒƒ‰–¼–â‚¢‡‚킹
+ * キャラåå•ã„åˆã‚ã›
*------------------------------------------
*/
int chrif_searchcharid (int char_id)
@@ -377,7 +377,7 @@ int chrif_searchcharid (int char_id)
}
/*==========================================
- * GM‚ɕω»—v‹
+ * GMã«å¤‰åŒ–è¦æ±‚
*------------------------------------------
*/
int chrif_changegm (int id, const char *pass, int len)
@@ -633,7 +633,7 @@ int chrif_changedgm (int fd)
}
/*==========================================
- * «•Ê•Ï‰»I—¹ (modified by Yor)
+ * 性別変化終了 (modified by Yor)
*------------------------------------------
*/
int chrif_changedsex (int fd)
@@ -705,7 +705,7 @@ int chrif_changedsex (int fd)
}
/*==========================================
- * ƒAƒJƒEƒ“ƒg•Ï”•Û‘¶—v‹
+ * アカウント変数ä¿å­˜è¦æ±‚
*------------------------------------------
*/
int chrif_saveaccountreg2 (struct map_session_data *sd)
@@ -733,7 +733,7 @@ int chrif_saveaccountreg2 (struct map_session_data *sd)
}
/*==========================================
- * ƒAƒJƒEƒ“ƒg•Ï”’Ê’m
+ * アカウント変数通知
*------------------------------------------
*/
int chrif_accountreg2 (int fd)
@@ -1151,12 +1151,12 @@ int chrif_parse (int fd)
|| packet_len_table[cmd - 0x2af8] == 0)
{
- int r = intif_parse (fd); // intif‚É“n‚·
+ int r = intif_parse (fd); // intifã«æ¸¡ã™
if (r == 1)
- continue; // intif‚ň—‚µ‚½
+ continue; // intifã§å‡¦ç†ã—ãŸ
if (r == 2)
- return 0; // intif‚ň—‚µ‚½‚ªAƒf[ƒ^‚ª‘«‚è‚È‚¢
+ return 0; // intifã§å‡¦ç†ã—ãŸãŒã€ãƒ‡ãƒ¼ã‚¿ãŒè¶³ã‚Šãªã„
session[fd]->eof = 1;
return 0;
@@ -1244,8 +1244,8 @@ int chrif_parse (int fd)
}
/*==========================================
- * timerŠÖ”
- * ¡‚±‚ÌmapŽI‚ÉŒq‚ª‚Á‚Ä‚¢‚éƒNƒ‰ƒCƒAƒ“ƒgl”‚ðcharŽI‚Ö‘—‚é
+ * timer関数
+ * 今ã“ã®map鯖ã«ç¹‹ãŒã£ã¦ã„るクライアント人数をchar鯖ã¸é€ã‚‹
*------------------------------------------
*/
int send_users_tochar (int tid, unsigned int tick, int id, int data)
@@ -1276,8 +1276,8 @@ int send_users_tochar (int tid, unsigned int tick, int id, int data)
}
/*==========================================
- * timerŠÖ”
- * charŽI‚Æ‚ÌÚ‘±‚ðŠm”F‚µA‚à‚µØ‚ê‚Ä‚¢‚½‚çÄ“xÚ‘±‚·‚é
+ * timer関数
+ * char鯖ã¨ã®æŽ¥ç¶šã‚’確èªã—ã€ã‚‚ã—切れã¦ã„ãŸã‚‰å†åº¦æŽ¥ç¶šã™ã‚‹
*------------------------------------------
*/
int check_connect_char_server (int tid, unsigned int tick, int id, int data)