summaryrefslogtreecommitdiff
path: root/src/char/int_party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 23:47:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 23:47:24 +0000
commitc253ebc35ad9ff85631e2c35a968b6001856479b (patch)
tree4df2cc58f81c572073673db57c81d1098db293ce /src/char/int_party.c
parent6c8639e84d348cc6fb39e74fce5dcc4132673562 (diff)
downloadhercules-c253ebc35ad9ff85631e2c35a968b6001856479b.tar.gz
hercules-c253ebc35ad9ff85631e2c35a968b6001856479b.tar.bz2
hercules-c253ebc35ad9ff85631e2c35a968b6001856479b.tar.xz
hercules-c253ebc35ad9ff85631e2c35a968b6001856479b.zip
- Added a check to remove exp-even-share when someone leaves a party.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5855 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/int_party.c')
-rw-r--r--src/char/int_party.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char/int_party.c b/src/char/int_party.c
index 1226da650..99c568a50 100644
--- a/src/char/int_party.c
+++ b/src/char/int_party.c
@@ -541,6 +541,12 @@ int mapif_parse_PartyLeave(int fd, int party_id, int account_id, int char_id) {
{
mapif_party_leaved(party_id, account_id, char_id);
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)
mapif_party_info(-1, p);// まだ人がいるのでデ?タ送信
return 0;