From 7e72f0cee8867837be53cb2119b610b00e9bd587 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 18 Feb 2013 00:30:28 -0300 Subject: Improvements all over the place Committing on the behalf of mkbu95 who is unable to do it himself, he coded it all and sent me the diff. Thanks mkbu95! Signed-off-by: shennetsind --- src/map/party.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/party.c') diff --git a/src/map/party.c b/src/map/party.c index f6b711791..d633170bd 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -204,11 +204,10 @@ int party_request_info(int party_id, int char_id) /// Invoked (from char-server) when the party info is not found. int party_recv_noinfo(int party_id, int char_id) { - struct map_session_data* sd; - party_broken(party_id); if( char_id != 0 )// requester { + struct map_session_data* sd; sd = map_charid2sd(char_id); if( sd && sd->status.party_id == party_id ) sd->status.party_id = 0; @@ -721,7 +720,6 @@ int party_recv_movemap(int party_id,int account_id,int char_id, unsigned short m void party_send_movemap(struct map_session_data *sd) { - int i; struct party_data *p; if( sd->status.party_id==0 ) @@ -740,6 +738,7 @@ void party_send_movemap(struct map_session_data *sd) } if (sd->fd) { // synchronize minimap positions with the rest of the party + int i; for(i=0; i < MAX_PARTY; i++) { if (p->data[i].sd && p->data[i].sd != sd && -- cgit v1.2.3-60-g2f50