summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-04-26 12:55:21 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-04-26 12:55:21 +0000
commited2d4742d0f572cf0393ee6667a88035c4e2d01e (patch)
tree4aa07b3bbb4845c1488b41bc940c852ca33ada0b
parent6da12760fbcc987747c97f70521bd9add2e0060f (diff)
downloadhercules-ed2d4742d0f572cf0393ee6667a88035c4e2d01e.tar.gz
hercules-ed2d4742d0f572cf0393ee6667a88035c4e2d01e.tar.bz2
hercules-ed2d4742d0f572cf0393ee6667a88035c4e2d01e.tar.xz
hercules-ed2d4742d0f572cf0393ee6667a88035c4e2d01e.zip
- Cleaned up party_option_changed to work better with newer clients.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14289 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/party.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 207e6c297..381b0a878 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -593,16 +593,18 @@ 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) {
+ //Flag&1: Exp change denied. Flag&2: Item change denied.
+ 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;
+#if PACKETVER<20090603
+ //item changes aren't updated by clif_party_option for older clients.
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;
}