diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-07 20:23:24 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-07 20:23:24 +0000 |
commit | ec70b501945e9c74c83a07f43ffc2c3a4cc97019 (patch) | |
tree | 415195bc61c270afca42a19d8309aac767c17539 /src/char | |
parent | 37a7546e284e9f330b137178d6c4646842bde97f (diff) | |
download | hercules-ec70b501945e9c74c83a07f43ffc2c3a4cc97019.tar.gz hercules-ec70b501945e9c74c83a07f43ffc2c3a4cc97019.tar.bz2 hercules-ec70b501945e9c74c83a07f43ffc2c3a4cc97019.tar.xz hercules-ec70b501945e9c74c83a07f43ffc2c3a4cc97019.zip |
- Removed function inter_party_logged, which after some testing and thinking, has been concluded is no longer necessary.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9818 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 3 | ||||
-rw-r--r-- | src/char/int_party.c | 27 | ||||
-rw-r--r-- | src/char/int_party.h | 1 |
3 files changed, 0 insertions, 31 deletions
diff --git a/src/char/char.c b/src/char/char.c index cb490e113..50f796cf5 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3602,9 +3602,6 @@ int parse_char(int fd) { WFIFOSET(map_fd, WFIFOW(map_fd,2)); } set_char_online(i, cd->char_id, cd->account_id); - //Sets char online in the party and breaks even share if needed. - inter_party_logged(cd->party_id, cd->account_id, cd->char_id); - auth_fifo_pos++; } break; diff --git a/src/char/int_party.c b/src/char/int_party.c index 0612afb0b..50a33295b 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -394,33 +394,6 @@ int mapif_party_optionchanged(int fd,struct party *p, int account_id, int flag) return 0; } -//Checks whether the even-share setting of a party is broken when a character logs in. [Skotlex] -int inter_party_logged(int party_id, int account_id, int char_id) -{ - struct party_data *p; - int i; - if (!party_id) - return 0; - - p = idb_get(party_db, party_id); - if(p==NULL) - return 0; - for (i = 0; i < MAX_PARTY; i++) - if(p->party.member[i].account_id == account_id && - p->party.member[i].char_id == char_id) - { - p->party.member[i].online = 1; - p->party.count++; - if(p->party.member[i].lv < p->min_lv || - p->party.member[i].lv > p->max_lv) - int_party_check_lv(p); - //Send online update to map servers - mapif_party_membermoved(&p->party, i); - break; - } - return 0; -} - // パ?ティ?退通知 int mapif_party_leaved(int party_id,int account_id, int char_id) { unsigned char buf[16]; diff --git a/src/char/int_party.h b/src/char/int_party.h index be3ae65f3..8f4ff5d18 100644 --- a/src/char/int_party.h +++ b/src/char/int_party.h @@ -11,7 +11,6 @@ int inter_party_save(void); int inter_party_parse_frommap(int fd); int inter_party_leave(int party_id,int account_id, int char_id); -int inter_party_logged(int party_id, int account_id, int char_id); extern char party_txt[1024]; |