|
@@ -262,6 +262,7 @@ int party_recv_info(struct party* sp, uint32 char_id)
|
|
|
int added[MAX_PARTY];// member_id in new data
|
|
|
int added_count = 0;
|
|
|
int member_id;
|
|
|
+ bool rename = false;
|
|
|
|
|
|
nullpo_ret(sp);
|
|
|
|
|
@@ -282,6 +283,9 @@ int party_recv_info(struct party* sp, uint32 char_id)
|
|
|
|
|
|
if( i == MAX_PARTY )
|
|
|
removed[removed_count++] = member_id;
|
|
|
+ // If the member already existed, compare the old to the (possible) new name
|
|
|
+ else if( !rename && strcmp(member->name,sp->member[i].name) )
|
|
|
+ rename = true;
|
|
|
}
|
|
|
|
|
|
for( member_id = 0; member_id < MAX_PARTY; ++member_id ) {
|
|
@@ -346,6 +350,11 @@ int party_recv_info(struct party* sp, uint32 char_id)
|
|
|
if( p->instance_id != 0 )
|
|
|
instance_reqinfo(sd,p->instance_id);
|
|
|
}
|
|
|
+
|
|
|
+ // If a player was renamed, make sure to resend the party information
|
|
|
+ if( rename ){
|
|
|
+ clif_party_info(p,NULL);
|
|
|
+ }
|
|
|
|
|
|
if( char_id != 0 ) { // requester
|
|
|
sd = map_charid2sd(char_id);
|