- Added a check to remove exp-even-share when someone leaves a party.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5855 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-04-01 23:47:24 +00:00
parent 76b9ca2fc1
commit 34eeb7cd5b
3 changed files with 13 additions and 0 deletions

View File

@@ -633,6 +633,12 @@ int mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id)
} else {
inter_party_tosql(p,PS_DELMEMBER,i);
memset(&p->member[i], 0, sizeof(struct party_member));
//Normally unneeded except when a family is even-sharing
//and one of the three leaves the party.
if(p->exp && !party_check_exp_share(p) ){
p->exp=0;
mapif_party_optionchanged(fd,p,0,0);
}
}
if (party_check_empty(p) == 0)