summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 03:54:35 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 03:54:35 +0000
commitbeeda58fd5525866d700d55d5504213bc2bd70fe (patch)
treeb1aeb3e0e5cbd0ee144b270045f167368a7bfffb /src/map/party.c
parentcd6cab9425aec0f7f5f38e1e797db4b284b5c013 (diff)
downloadhercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.gz
hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.bz2
hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.tar.xz
hercules-beeda58fd5525866d700d55d5504213bc2bd70fe.zip
- Updated clif_disp_onlyself to not use dynamic memory and write directly to the player's buffer.
- Updated @noask to also tell the rejected what he has just rejected (added msg_athena entries for each of the different requests) - Since noask already does a player lookup, updated the corresponding parsing functions to take the player rather than the player id (prevents double lookups) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7117 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 4e3eafecd..474322966 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -230,9 +230,8 @@ int party_recv_info(struct party *sp)
return 0;
}
-int party_invite(struct map_session_data *sd,int account_id)
+int party_invite(struct map_session_data *sd,struct map_session_data *tsd)
{
- struct map_session_data *tsd= map_id2sd(account_id);
struct party_data *p=party_search(sd->status.party_id);
int i,flag=0;
@@ -253,7 +252,7 @@ int party_invite(struct map_session_data *sd,int account_id)
for(i=0;i<MAX_PARTY;i++){
if(p->party.member[i].account_id == 0) //Room for a new member.
flag = 1;
- if(p->party.member[i].account_id==account_id &&
+ if(p->party.member[i].account_id==tsd->status.account_id &&
p->party.member[i].char_id==tsd->status.char_id){
clif_party_inviteack(sd,tsd->status.name,0);
return 0;