diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-27 02:55:24 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-27 02:55:24 +0000 |
commit | 93dca33bf53ddeba191f553e816ba7bb72774cc0 (patch) | |
tree | 04a8cb4c44c1d940b39c3d65c795c66cfd89aa73 /src/map/party.c | |
parent | 91a25bb1534462030596bcd17784cd91e95cd88a (diff) | |
download | hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.gz hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.bz2 hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.tar.xz hercules-93dca33bf53ddeba191f553e816ba7bb72774cc0.zip |
- Applied the necessary changes to make @partyoption reflect it's changes on the alt+p window.
- Some code indentation cleanups.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7905 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/map/party.c b/src/map/party.c index 271826610..2fbf363bd 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -469,9 +469,14 @@ int party_optionchanged(int party_id,int account_id,int exp,int item,int flag) if( (p=party_search(party_id))==NULL)
return 0;
- if(!(flag&0x01)) p->party.exp=exp;
- if(!(flag&0x10)) p->party.item=item;
- clif_party_option(p,sd,flag);
+ if(!(flag&0x01) && 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) {
+ p->party.item=item;
+ clif_party_main_info(p,-1);
+ }
return 0;
}
|