diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2019-12-30 17:14:03 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-02-05 00:42:55 +0100 |
commit | c3c195193569d41cf85d6d08532ad51e27822476 (patch) | |
tree | c7bfb2d8ec2fa4b1b7fe15a85c54aca829a43ae7 /src/char/int_party.c | |
parent | 76c0b6cee70d9c2a382f6479b34a615f38d02be1 (diff) | |
download | hercules-c3c195193569d41cf85d6d08532ad51e27822476.tar.gz hercules-c3c195193569d41cf85d6d08532ad51e27822476.tar.bz2 hercules-c3c195193569d41cf85d6d08532ad51e27822476.tar.xz hercules-c3c195193569d41cf85d6d08532ad51e27822476.zip |
Updated inter_party_calc_state() function.
* inter_party_calc_state() function now calls inter_party_check_lv() function, instead of doing the same things on its own.
Diffstat (limited to 'src/char/int_party.c')
-rw-r--r-- | src/char/int_party.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/char/int_party.c b/src/char/int_party.c index c8c18ce7f..09d4abea5 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -72,8 +72,6 @@ static void inter_party_calc_state(struct party_data *p) { int i; nullpo_retv(p); - p->min_lv = UINT_MAX; - p->max_lv = 0; p->party.count = p->size = p->family = 0; @@ -100,22 +98,8 @@ static void inter_party_calc_state(struct party_data *p) p->party.member[2].char_id ); } - //max/min levels. - for (i = 0; i < MAX_PARTY; i++) { - unsigned int lv = p->party.member[i].lv; - if (!lv) continue; - if (p->party.member[i].online - && p->party.member[i].char_id != p->family /* In families, the kid is not counted towards exp share rules. */ - ) { - if( lv < p->min_lv ) p->min_lv=lv; - if( p->max_lv < lv ) p->max_lv=lv; - } - } - if (p->party.exp && !inter_party->check_exp_share(p)) { - p->party.exp = 0; //Set off even share. - mapif->party_optionchanged(0, &p->party, 0, 0); - } + inter_party->check_lv(p); } // Save party to mysql |