summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 02:55:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-27 02:55:24 +0000
commit93dca33bf53ddeba191f553e816ba7bb72774cc0 (patch)
tree04a8cb4c44c1d940b39c3d65c795c66cfd89aa73 /src/map/party.c
parent91a25bb1534462030596bcd17784cd91e95cd88a (diff)
downloadhercules-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.c11
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;
}