- Cleaned up party_option_changed to work better with newer clients.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14289 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
2b3c602ea7
commit
3fe55a09f8
@ -593,15 +593,17 @@ int party_optionchanged(int party_id,int account_id,int exp,int item,int flag)
|
|||||||
if( (p=party_search(party_id))==NULL)
|
if( (p=party_search(party_id))==NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(!(flag&0x01) && p->party.exp != exp) {
|
//Flag&1: Exp change denied. Flag&2: Item change denied.
|
||||||
|
if(!(flag&0x01) && p->party.exp != exp)
|
||||||
p->party.exp=exp;
|
p->party.exp=exp;
|
||||||
clif_party_option(p,sd,flag); //This packet doesn't updates item info anymore...
|
|
||||||
}
|
|
||||||
if(!(flag&0x10) && p->party.item != item) {
|
if(!(flag&0x10) && p->party.item != item) {
|
||||||
p->party.item=item;
|
p->party.item=item;
|
||||||
|
#if PACKETVER<20090603
|
||||||
|
//item changes aren't updated by clif_party_option for older clients.
|
||||||
clif_party_member_info(p,sd);
|
clif_party_member_info(p,sd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(flag&0x01) //Send denied message
|
|
||||||
clif_party_option(p,sd,flag);
|
clif_party_option(p,sd,flag);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user