summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 00:52:39 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 00:52:39 +0000
commit6c70b54437d0b0a8dec68cfc1364d1a4e49fb338 (patch)
treef63fcde1e742c175c1ff95fbbab746d23ca79706 /src/map
parent693f6765c3f9ea234862d58f9e3b3aa2428ca986 (diff)
downloadhercules-6c70b54437d0b0a8dec68cfc1364d1a4e49fb338.tar.gz
hercules-6c70b54437d0b0a8dec68cfc1364d1a4e49fb338.tar.bz2
hercules-6c70b54437d0b0a8dec68cfc1364d1a4e49fb338.tar.xz
hercules-6c70b54437d0b0a8dec68cfc1364d1a4e49fb338.zip
Replaced all occurrences of 'leaved' with 'withdraw'.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14319 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/clif.h2
-rw-r--r--src/map/guild.c2
-rw-r--r--src/map/guild.h2
-rw-r--r--src/map/intif.c14
-rw-r--r--src/map/party.c6
-rw-r--r--src/map/party.h2
7 files changed, 15 insertions, 15 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index ec8cbddac..c63722a32 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5850,7 +5850,7 @@ int clif_party_option(struct party_data *p,struct map_session_data *sd,int flag)
/*==========================================
* パーティ脱退(脱退前に呼ぶこと)
*------------------------------------------*/
-int clif_party_leaved(struct party_data* p, struct map_session_data* sd, int account_id, const char* name, int flag)
+int clif_party_withdraw(struct party_data* p, struct map_session_data* sd, int account_id, const char* name, int flag)
{
unsigned char buf[64];
int i;
diff --git a/src/map/clif.h b/src/map/clif.h
index c1522db96..61962bf99 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -276,7 +276,7 @@ int clif_party_info(struct party_data *p, struct map_session_data *sd);
int clif_party_invite(struct map_session_data *sd,struct map_session_data *tsd);
void clif_party_inviteack(struct map_session_data* sd, const char* nick, int flag);
int clif_party_option(struct party_data *p,struct map_session_data *sd,int flag);
-int clif_party_leaved(struct party_data* p, struct map_session_data* sd, int account_id, const char* name, int flag);
+int clif_party_withdraw(struct party_data* p, struct map_session_data* sd, int account_id, const char* name, int flag);
int clif_party_message(struct party_data* p, int account_id, const char* mes, int len);
void clif_party_move(struct party* p, struct map_session_data* sd, int online);
int clif_party_xy(struct map_session_data *sd);
diff --git a/src/map/guild.c b/src/map/guild.c
index b6d1b05ae..937a90ea9 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -844,7 +844,7 @@ int guild_expulsion(struct map_session_data* sd, int guild_id, int account_id, i
return 0;
}
-int guild_member_leaved(int guild_id, int account_id, int char_id, int flag, const char* name, const char* mes)
+int guild_member_withdraw(int guild_id, int account_id, int char_id, int flag, const char* name, const char* mes)
{
int i;
struct guild* g = guild_search(guild_id);
diff --git a/src/map/guild.h b/src/map/guild.h
index 67cfd3544..753de0da1 100644
--- a/src/map/guild.h
+++ b/src/map/guild.h
@@ -56,7 +56,7 @@ void guild_member_joined(struct map_session_data *sd);
int guild_member_added(int guild_id,int account_id,int char_id,int flag);
int guild_leave(struct map_session_data *sd,int guild_id,
int account_id,int char_id,const char *mes);
-int guild_member_leaved(int guild_id,int account_id,int char_id,int flag,
+int guild_member_withdraw(int guild_id,int account_id,int char_id,int flag,
const char *name,const char *mes);
int guild_expulsion(struct map_session_data *sd,int guild_id,
int account_id,int char_id,const char *mes);
diff --git a/src/map/intif.c b/src/map/intif.c
index 49330073e..c0ac8f9d4 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1036,11 +1036,11 @@ int intif_parse_PartyOptionChanged(int fd)
return 0;
}
// パーティ脱退通知
-int intif_parse_PartyMemberLeaved(int fd)
+int intif_parse_PartyMemberWithdraw(int fd)
{
if(battle_config.etc_log)
- ShowInfo("intif: party member leaved: Party(%d), Account(%d), Char(%d)\n",RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10));
- party_member_leaved(RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10));
+ ShowInfo("intif: party member withdraw: Party(%d), Account(%d), Char(%d)\n",RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10));
+ party_member_withdraw(RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10));
return 0;
}
// パーティ解散通知
@@ -1091,9 +1091,9 @@ int intif_parse_GuildMemberAdded(int fd)
return 0;
}
// ギルドメンバ脱退/追放通知
-int intif_parse_GuildMemberLeaved(int fd)
+int intif_parse_GuildMemberWithdraw(int fd)
{
- guild_member_leaved(RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10),RFIFOB(fd,14),(char *)RFIFOP(fd,55),(char *)RFIFOP(fd,15));
+ guild_member_withdraw(RFIFOL(fd,2),RFIFOL(fd,6),RFIFOL(fd,10),RFIFOB(fd,14),(char *)RFIFOP(fd,55),(char *)RFIFOP(fd,15));
return 0;
}
@@ -2029,14 +2029,14 @@ int intif_parse(int fd)
case 0x3821: intif_parse_PartyInfo(fd); break;
case 0x3822: intif_parse_PartyMemberAdded(fd); break;
case 0x3823: intif_parse_PartyOptionChanged(fd); break;
- case 0x3824: intif_parse_PartyMemberLeaved(fd); break;
+ case 0x3824: intif_parse_PartyMemberWithdraw(fd); break;
case 0x3825: intif_parse_PartyMove(fd); break;
case 0x3826: intif_parse_PartyBroken(fd); break;
case 0x3827: intif_parse_PartyMessage(fd); break;
case 0x3830: intif_parse_GuildCreated(fd); break;
case 0x3831: intif_parse_GuildInfo(fd); break;
case 0x3832: intif_parse_GuildMemberAdded(fd); break;
- case 0x3834: intif_parse_GuildMemberLeaved(fd); break;
+ case 0x3834: intif_parse_GuildMemberWithdraw(fd); break;
case 0x3835: intif_parse_GuildMemberInfoShort(fd); break;
case 0x3836: intif_parse_GuildBroken(fd); break;
case 0x3837: intif_parse_GuildMessage(fd); break;
diff --git a/src/map/party.c b/src/map/party.c
index 381b0a878..53755b777 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -516,7 +516,7 @@ int party_leave(struct map_session_data *sd)
}
/// Invoked (from char-server) when a party member leaves the party.
-int party_member_leaved(int party_id, int account_id, int char_id)
+int party_member_withdraw(int party_id, int account_id, int char_id)
{
struct map_session_data* sd = map_id2sd(account_id);
struct party_data* p = party_search(party_id);
@@ -527,7 +527,7 @@ int party_member_leaved(int party_id, int account_id, int char_id)
ARR_FIND( 0, MAX_PARTY, i, p->party.member[i].account_id == account_id && p->party.member[i].char_id == char_id );
if( i < MAX_PARTY )
{
- clif_party_leaved(p,sd,account_id,p->party.member[i].name,0x00);
+ clif_party_withdraw(p,sd,account_id,p->party.member[i].name,0x00);
memset(&p->party.member[i], 0, sizeof(p->party.member[0]));
memset(&p->data[i], 0, sizeof(p->data[0]));
p->party.count--;
@@ -567,7 +567,7 @@ int party_broken(int party_id)
{
if( p->data[i].sd!=NULL )
{
- clif_party_leaved(p,p->data[i].sd,p->party.member[i].account_id,p->party.member[i].name,0x10);
+ clif_party_withdraw(p,p->data[i].sd,p->party.member[i].account_id,p->party.member[i].name,0x10);
p->data[i].sd->status.party_id=0;
}
}
diff --git a/src/map/party.h b/src/map/party.h
index 55142fa7e..25142e4af 100644
--- a/src/map/party.h
+++ b/src/map/party.h
@@ -46,7 +46,7 @@ void party_member_joined(struct map_session_data *sd);
int party_member_added(int party_id,int account_id,int char_id,int flag);
int party_leave(struct map_session_data *sd);
int party_removemember(struct map_session_data *sd,int account_id,char *name);
-int party_member_leaved(int party_id,int account_id,int char_id);
+int party_member_withdraw(int party_id,int account_id,int char_id);
void party_reply_invite(struct map_session_data *sd,int account_id,int flag);
int party_recv_noinfo(int party_id);
int party_recv_info(struct party *sp);