summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorshinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-25 18:06:30 +0000
committershinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-25 18:06:30 +0000
commit715a946678a9e44ed56528f822d2e199753b8049 (patch)
treebd5da0b67c1688ea1ab4ddeea1bcf7128198798b /src/map/party.c
parent970ad20d01dccaff33259dc239733753db0018c1 (diff)
downloadhercules-715a946678a9e44ed56528f822d2e199753b8049.tar.gz
hercules-715a946678a9e44ed56528f822d2e199753b8049.tar.bz2
hercules-715a946678a9e44ed56528f822d2e199753b8049.tar.xz
hercules-715a946678a9e44ed56528f822d2e199753b8049.zip
revised npc_event_dequeue; added a check to party share & devel update [Shinomori]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1175 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 85774c33b..5caff4be1 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -587,12 +587,13 @@ int party_exp_share(struct party *p,int map,int base_exp,int job_exp,int zeny)
nullpo_retr(0, p);
for(i=c=0;i<MAX_PARTY;i++)
- if((sd=p->member[i].sd)!=NULL && sd->bl.m==map)
+ if((sd=p->member[i].sd)!=NULL && p->member[i].online && sd->bl.m==map && session[sd->fd] != NULL)
c++;
+
if(c==0)
return 0;
for(i=0;i<MAX_PARTY;i++)
- if((sd=p->member[i].sd)!=NULL && sd->bl.m==map && session[sd->fd] != NULL) {
+ if((sd=p->member[i].sd)!=NULL && p->member[i].online && sd->bl.m==map && session[sd->fd] != NULL) {
if (/* pc_issit(sd) || */ sd->chatID || (sd->idletime < (tick_ - 120)))
continue;
#ifdef TWILIGHT